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.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 627b6690d958231e382e5ebd5a575d9a097bf86b3182750d46e6e67649406927 |
|
MD5 | 9350f85ad586e60f5bf7bdd5d09ebe33 |
|
BLAKE2b-256 | 06b56e204d22138b4b2249f3a2398812e84516dcaca11311149da2205145dea6 |
File details
Details for the file django_cloudtask-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: django_cloudtask-0.1.2-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 | 9f0f51fb8a0ebfecf27d27e4afda69261198bd2e4847472620accd6caeb56524 |
|
MD5 | 1a453cc299904412224bd072c3ff02c8 |
|
BLAKE2b-256 | 772de7a3fb92a9eeb30bf94ad7d921b9bb6a56155b9d3eeb387fd938166474ca |