nameko apscheduler dependency.
Project description
Nameko Apscheduler
A Nameko dependency provider for easy use with apscheduler.
Quick Start
Install from PyPI:
pip install nameko-apscheduler
# service.py
from nameko.rpc import rpc
from nameko_apscheduler import Scheduler
class Service:
name = 'example'
scheduler = Scheduler()
Create a config file with essential settings:
# config.yaml
AMQP_URI: 'pyamqp://guest:guest@localhost'
APSCHDULER:
jobstores:
default:
type: sqlalchemy
url: mysql+mysqlconnector://${DB_USER:root}:${DB_PASS:}@${DB_SERVER:localhost}/${DB_NAME:crm}
executors:
default:
type: threadpool
max_workers: 20
job_defaults:
coalesce: False
max_instances: 1
misfire_grace_time: 1
timezone: UTC
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
File details
Details for the file nameko-apscheduler-0.0.3.tar.gz
.
File metadata
- Download URL: nameko-apscheduler-0.0.3.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eae66cf17a8b612cee41bb57d698ed77fb5f8ff51a5b812123cf8eb86fcaf15b |
|
MD5 | f8d3db125a95f2fb2cd74259d68d1f39 |
|
BLAKE2b-256 | 628a1b5974a4f664778f86b65ae36dd084e08e2565f3e86199f7894a4f9945dd |