Nameko Cron
Nameko Cron entrypoint fires based on a cron expression. It is not cluster-aware and
will fire on all service instances. The cron schedule is based on croniter.
Usage
from nameko_cron import cron
class Service:
name ="service"
@cron('*/5 * * * *')
def ping(self):
# executes every 5 minutes
print("pong")
timezone-aware cron schedules are also available
from nameko_cron import cron
class Service:
name ="service"
@cron('0 12 * * *', tz='America/Chicago')
def ping(self):
# executes every day at noon America/Chicago time
print("pong")
by default, if a worker takes longer than the next scheduled run the worker will wait until
the task is complete before immediately launching a new worker. This behavior can be controlled
via the concurrency keyword argument.
ConcurrencyPolicy.WAIT is that default behavior.
ConcurrencyPolicy.ALLOW will spawn a worker regardless of whether existing workers are still running.
ConcurrencyPolicy.SKIP will skip a run if the previous worker lapsed the next scheduled run.
Metadata
Release files for nameko-cron 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nameko-cron-0.1.0.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nameko_cron-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / nameko-cron-0.1.0.tar.gz
| Download URL | nameko-cron-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e96877a60c96d788e99482ba81c7683d293cfdfa58e6584e452aec47081dfcb4
|
|
BLAKE2b-256 checksum How to use checksums |
3f92c73d1092aa2deb72dbae1d0408c1b1d216052424affed0cc507d362c983b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
|
Release files / nameko_cron-0.1.0-py3-none-any.whl
| Download URL | nameko_cron-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19f9f1590178c52bc29990c0751f55e8ecba674ed8549dc08b7f32fad1cc6a5f
|
|
BLAKE2b-256 checksum How to use checksums |
00ab122017cceed8430d4b7d284d58cd8c60639ce7c71124a6f8f57865e5b6fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
|
Security for nameko-cron 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.