import time
import json


def result_complete_callback(request, context):
    # pylint: disable=unused-argument
    """
    Callback function returning 'complete' JSON.
    """
    exp_op_result = {
        'foo': 'bar',
    }
    job_result_complete = {
        'status': 'complete',
        'job-status-code': 200,
        # 'job-reason-code' omitted because HTTP status good
        'job-results': exp_op_result,
    }
    time.sleep(1)
    return json.dumps(job_result_complete)