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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-cloudtask-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 627b6690d958231e382e5ebd5a575d9a097bf86b3182750d46e6e67649406927
MD5 9350f85ad586e60f5bf7bdd5d09ebe33
BLAKE2b-256 06b56e204d22138b4b2249f3a2398812e84516dcaca11311149da2205145dea6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_cloudtask-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f0f51fb8a0ebfecf27d27e4afda69261198bd2e4847472620accd6caeb56524
MD5 1a453cc299904412224bd072c3ff02c8
BLAKE2b-256 772de7a3fb92a9eeb30bf94ad7d921b9bb6a56155b9d3eeb387fd938166474ca

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