django-cloud-tasks
django-cloud-tasks copied to clipboard
Cloud run http
Changes:
- Bugfix: If
DJANGO_CLOUD_TASKS_HANDLER_SECRET
is not defined, allow task to run with blank HTTP_X_DCT_SECRET-header - Improvement: Added
DJANGO_CLOUD_TASKS_REGION
andDJANGO_CLOUD_TASKS { 'http_service_account': }
to make Cloud Tasks possible via HTTP-requests also - Refactoring: Added
CloudTaskException
for all raised exceptions to enable better error handling of a task enqueue failure - Bugfix: Soft-coded GCP location with
DJANGO_CLOUD_TASKS_REGION
instead of us_central1 - Bugfix:
_tasks
was hard-coded in code, configured setting oftask_handler_root_url
is used now - Change: Effect of
DJANGO_CLOUD_TASKS_EXECUTE_LOCALLY
when remote task is used. IfTrue
all tasks execute locally. - Bugfix: Suppressed OAuth2 cache warning by disabling discovery caching.
- Improvement: If task execution request is not POST, quit early to make error less noisy.
With these changes I made my app work from Cloud Run to Cloud Tasks to call back via HTTP.