Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ma-pony/nameko-apscheduler
A Nameko dependency provider for easy use with apscheduler.
https://github.com/ma-pony/nameko-apscheduler
apscheduler nameko
Last synced: about 1 month ago
JSON representation
A Nameko dependency provider for easy use with apscheduler.
- Host: GitHub
- URL: https://github.com/ma-pony/nameko-apscheduler
- Owner: ma-pony
- License: apache-2.0
- Created: 2020-05-17T09:15:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T14:51:20.000Z (almost 2 years ago)
- Last Synced: 2024-11-03T19:49:59.392Z (about 2 months ago)
- Topics: apscheduler, nameko
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Nameko Apscheduler
=================A [Nameko](http://nameko.readthedocs.org) dependency provider for easy use with [apscheduler](https://github.com/agronholm/apscheduler).
Quick Start
-----------Install from [PyPI](https://pypi.python.org/pypi/nameko-apscheduler):
pip install nameko-apscheduler
``` {.sourceCode .python}
# service.pyfrom nameko.rpc import rpc
from nameko_apscheduler import Schedulerclass Service:
name = 'example'
scheduler = Scheduler()
```
Create a config file with essential settings:
``` {.sourceCode .yaml}
# config.yamlAMQP_URI: 'pyamqp://guest:guest@localhost'
APSCHDULER:
exchange_name: nameko-apscheduler
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
```