Skip to main content

A django package for managing long running tasks using GCP Cloud Task

Project description

django-cloudtask

A django package for managing long running tasks via Cloud Run and Cloud Scheduler

CircleCI

Should I be using this package?

Probably not.

Configuration

Make sure these are in your django settings:

  • PROJECT_ID
    • the GCP project
  • PROJECT_REGION
    • GCP region
  • TASK_SERVICE_ACCOUNT
    • Service account which will be authenticated against
  • TASK_DOMAIN
    • domain which receives tasks (cloud run)
  • TASK_DEFAULT_QUEUE
    • default queue tasks will be added to

Contributing

We use pre-commit <https://pre-commit.com/> to enforce our code style rules locally before you commit them into git. Once you install the pre-commit library (locally via pip is fine), just install the hooks::

pre-commit install -f --install-hooks

The same checks are executed on the build server, so skipping the local linting (with git commit --no-verify) will only result in a failed test build.

Current style checking tools:

  • flake8: python linting
  • isort: python import sorting
  • black: python code formatting

Note:

You must have python3.6 available on your path, as it is required for some
of the hooks.

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

django-cloudtask-0.1.4.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

django_cloudtask-0.1.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file django-cloudtask-0.1.4.tar.gz.

File metadata

  • Download URL: django-cloudtask-0.1.4.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.0 Darwin/19.6.0

File hashes

Hashes for django-cloudtask-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1ea6d9be7d912c541bed6fc411268224c3bacb183062737091e1acec17ac948c
MD5 b788f77d50ecf96c3997df257cf5b2cd
BLAKE2b-256 2858b0d5588778708467e61434e9e95b4e372f787ef74938e511e0125dfe4fbe

See more details on using hashes here.

File details

Details for the file django_cloudtask-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_cloudtask-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee64a3462636760eb9273afca21f2d1f8e027706287f444203373d061d395f16
MD5 2906612bef92e7c07ef4d76cc591c2b9
BLAKE2b-256 44a270d6bc7663581c38e93bd0bb90e3a62b3bcaa027473ff42cea01cf25e9f4

See more details on using hashes here.

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