mod-ngarn
Usage
Usage: mod-ngarn [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
create-table Create mod-ngarn queue table
delete-job Delete executed task
run Run mod-ngarn job
wait-for-notify Wait and listening for NOTIFY
Installation
pip install mod-ngarn
Run modngarn
Usage: mod-ngarn run [OPTIONS]
Run mod-ngarn job
Options:
--queue-table TEXT Queue table name (Default: os.getenv("DBTABLE",
"public.modngarn_job"))
--limit INTEGER Limit jobs (Default: 300)
--max-delay FLOAT Max delay for failed jobs (seconds) (Default: None)
--help Show this message and exit.
Create modngarn job queue table
Usage: mod-ngarn create-table [OPTIONS]
Options:
--queue-table TEXT Queue table name (Default: os.getenv("DBTABLE",
"public.modngarn_job"))
--help Show this message and exit.
Wait for notify
Usage: mod-ngarn wait-for-notify [OPTIONS]
Wait and listening for NOTIFY
Options:
--queue-table TEXT Queue table name (Default: os.getenv("DBTABLE",
"public.modngarn_job"))
--help Show this message and exit.
Delete executed job
Usage: mod-ngarn delete-job [OPTIONS]
Delete executed task
Options:
--queue-table TEXT Queue table name (Default: os.getenv("DBTABLE",
"public.modngarn_job"))
--help Show this message and exit.
Example run script
#!/bin/bash
set -u
while true
do
mod-ngarn run $*
timeout 5 mod-ngarn wait-for-notify
done
Dev
Required
- flit (https://pypi.org/project/flit/)
- running PostgreSQL (
psqlshould work) - python 3.7
Setup
flit install
Runtests
./runtests.sh
Publish to PyPi
flit publish
Metadata
Release files for mod_ngarn 3.5
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 | Actions |
|---|---|---|---|---|
| mod_ngarn-3.5.tar.gz | 14.5 kB | Without provenance | Details for mod_ngarn-3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mod_ngarn-3.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for mod_ngarn-3.5-py2.py3-none-any.whl |
Total release size: 39.0 kB
Release files / mod_ngarn-3.5.tar.gz
| Download URL | mod_ngarn-3.5.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
568535d425f3e03bd996a76bcfc4b7a0b0624439de692b9ac22d694e1ea45e8e
|
|
BLAKE2b-256 checksum How to use checksums |
70caf5a5497e48ebd9fc821dc5645cd469e1b9ca77af82e194f79ec91a98c75f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|
Release files / mod_ngarn-3.5-py2.py3-none-any.whl
| Download URL | mod_ngarn-3.5-py2.py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1b59bfa5aafc574a9f1c1ae7219b96460657377e539d04ce4b83338d11ad276a
|
|
BLAKE2b-256 checksum How to use checksums |
ced39073fc8e224a3ff358380a582ff00aa7e9e9f0dd98454dccb69e885e2e54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|
Security for mod_ngarn 3.5
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.