Dependencies¶
fastapi_gcp_tasks.dependencies ¶
CloudTasksHeaders ¶
CloudTasksHeaders(
x_cloudtasks_taskretrycount: int = Header(0),
x_cloudtasks_taskexecutioncount: int = Header(0),
x_cloudtasks_queuename: str = Header(""),
x_cloudtasks_taskname: str = Header(""),
x_cloudtasks_tasketa: float = Header(0),
x_cloudtasks_taskpreviousresponse: int = Header(0),
x_cloudtasks_taskretryreason: str = Header(""),
)
Extracts known headers sent by Cloud Tasks.
Full list: https://cloud.google.com/tasks/docs/creating-http-target-tasks#handler
Source code in fastapi_gcp_tasks/dependencies.py
max_retries ¶
Raises an http exception (with status 200) after max retries are exhausted.