Skip to main content

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:
    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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nameko-apscheduler-0.2.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

nameko_apscheduler-0.2.0-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page