Skip to main content

A deferred library for Google Cloud Tasks

Project description

cloud-tasks-deferred-v2

A deferred library for Google Cloud Tasks.

Fork of python-cloud-tasks-deferred originally created by Atsushi Hanaoka.

Key differences

  • Migrated to google-cloud-tasks 2.0.0
  • Dropped Python 2 support
  • Added Flask integration

Installation

Addd following handler to your app.yaml

- url: /_tasks/deferred
  script: cloud_tasks_deferred.wsgi.application
  login: admin

Initialize module in flask

from cloud_tasks_deferred_v2.flask import init_deferred

init_deferred(app)

Prerequisites

  • Environment variable QUEUE_LOCATION in which Cloud Tasks service runs

Unavailable options

  • _transactional: Transactional tasks are unavailable in Cloud Tasks
  • _retry_options: Retry options for tasks are unavailable in Cloud Tasks

Unimplemented features

  • Support for tasks larger than 10 KB

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloud-tasks-deferred-v2-0.0.6.tar.gz (13.2 kB view hashes)

Uploaded Source

Built Distribution

cloud_tasks_deferred_v2-0.0.6-py2.py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page