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.3.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

django_cloudtask-0.1.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-cloudtask-0.1.3.tar.gz
  • Upload date:
  • Size: 7.3 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.3.tar.gz
Algorithm Hash digest
SHA256 c9f79404ac268a2472aee6211c1376c6efb28b15d701366b90c9558a0f1b00b1
MD5 2cec2ed255c3e8628a8582804b420d04
BLAKE2b-256 e5f9c77edeebaef76b50d714c95a4a6f5d2a81b5b8ad55c10ddda83ee51c9193

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_cloudtask-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c535ba01db91a5f025d0e3ffc8e3a82f2cf9dbce218717030ac4fb0231538acd
MD5 623853f78d2f8e5e3e87e4c317237059
BLAKE2b-256 0dfe31f85cb375a30264b131f97d49f74cdae1eb64ef3bf5e900396d46ee591a

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