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.
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-2.9.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for mod_ngarn-2.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e0e4b9228086023ac0f01ff74e9ffd679781d6ad1dce40b41a5d6b3566ddeb1 |
|
MD5 | 0ca9f3c3f32570d8140c8cbc8907772b |
|
BLAKE2b-256 | 299eb19f052f14355f833b06c6edd20dec7459255c558bbc98388d93f88bd29f |