in azure/durable_functions/models/DurableOrchestrationClient.py [0:0]
def create_check_status_response(
self, request: func.HttpRequest, instance_id: str) -> func.HttpResponse:
"""Create a HttpResponse that contains useful information for \
checking the status of the specified instance.
Parameters
----------
request : HttpRequest
The HTTP request that triggered the current orchestration instance.
instance_id : str
The ID of the orchestration instance to check.
Returns
-------
HttpResponse
An HTTP 202 response with a Location header
and a payload containing instance management URLs
"""
http_management_payload = self.get_client_response_links(request, instance_id)
response_args = {
"status_code": 202,
"body": json.dumps(http_management_payload),
"headers": {
"Content-Type": "application/json",
"Location": http_management_payload["statusQueryGetUri"],
"Retry-After": "10",
},
}
return func.HttpResponse(**response_args)