django-cloud-tasks icon indicating copy to clipboard operation
django-cloud-tasks copied to clipboard

Cloud run http

Open HQJaTu opened this issue 3 years ago • 0 comments

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 and DJANGO_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 of task_handler_root_url is used now
  • Change: Effect of DJANGO_CLOUD_TASKS_EXECUTE_LOCALLY when remote task is used. If True 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.

HQJaTu avatar Nov 26 '20 09:11 HQJaTu