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:
    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.0.7.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

nameko_apscheduler-0.0.7-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file nameko-apscheduler-0.0.7.tar.gz.

File metadata

  • Download URL: nameko-apscheduler-0.0.7.tar.gz
  • Upload date:
  • Size: 4.9 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

Hashes for nameko-apscheduler-0.0.7.tar.gz
Algorithm Hash digest
SHA256 39cdc383d75ca3b9d0559d18b93ce2a8fe7d6d2ae13f582da1dd8fb2717ff560
MD5 4e33b3b7b596fd7530e1686c3fc3d92f
BLAKE2b-256 e01f338b5b092d57f732e194ec3fa5b88fb3673f92bcbdc81eaca243fdfe4572

See more details on using hashes here.

File details

Details for the file nameko_apscheduler-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: nameko_apscheduler-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • 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

Hashes for nameko_apscheduler-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cb37bc219330d4e8fbab78703b428f652dca949cd24d73a36d8b0cdab7093c1b
MD5 12e63a042f84332701ef4ae1d3966a8e
BLAKE2b-256 4cc0d76a447e2f2c5da37e97c4aec4098506e4cb9b39acf88e7f9cf31c8244df

See more details on using hashes here.

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