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
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9f79404ac268a2472aee6211c1376c6efb28b15d701366b90c9558a0f1b00b1 |
|
MD5 | 2cec2ed255c3e8628a8582804b420d04 |
|
BLAKE2b-256 | e5f9c77edeebaef76b50d714c95a4a6f5d2a81b5b8ad55c10ddda83ee51c9193 |
File details
Details for the file django_cloudtask-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: django_cloudtask-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.0 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c535ba01db91a5f025d0e3ffc8e3a82f2cf9dbce218717030ac4fb0231538acd |
|
MD5 | 623853f78d2f8e5e3e87e4c317237059 |
|
BLAKE2b-256 | 0dfe31f85cb375a30264b131f97d49f74cdae1eb64ef3bf5e900396d46ee591a |