Simple async worker
Project description
mod-ngarn
ModNgarn – Simple job workers
Usage
Usage: mod-ngarn [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
create-table
run
Installation
pip install mod-ngarn
Run modngarn
Usage: mod-ngarn run [OPTIONS]
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.
Returns:
Exit code 0 Success run all <--limit> job
Exit code 3 Success run but has job less than <--limit>
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.
Dev
Required
- pipenv (https://github.com/pypa/pipenv)
- running PostgreSQL (
psql
should work) - python 3.7
Setup
pipenv install --python 3.7
pipenv shell
Runtests
./runtests.sh
Publish to PyPi
flit publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mod_ngarn-3.0.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for mod_ngarn-3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b5435db83535d2e647ccc48cd9cbd9b8efff25399a6ed653f62868ad67c940 |
|
MD5 | 5024da8f5954716928f34509393a3d13 |
|
BLAKE2b-256 | a9fa049c13b51b55fad93ed9611b003efead80abd0c757937639a3ac165c024b |