Skip to main content

Scheduling python functions for execution.

Project description

dcnr-scheduler

Minimal example package. After installation:

from dcnr_scheduler import scheduled, ScheduledPlan
from datetime import datetime

@scheduled("at * on mon-fri freq 30/hour")
def print_msg(plan:ScheduledPlan, curr_dt:datetime):
    print(curr_dt, 'Hello world')

Internal engine of scheduler checks every 60 seconds by default the aligibility of functions to execute. That poses a limitation for maximum frequency of 60 executions per hour. To increase the limit, you can set the period of internal scheduler checks.

from dcnr_scheduler import ScheduledPlan

ScheduledPlan.set_period(30)

Argument of set_period is number of seconds (integer)

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

dcnr_scheduler-1.0.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcnr_scheduler-1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file dcnr_scheduler-1.0.0.tar.gz.

File metadata

  • Download URL: dcnr_scheduler-1.0.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.4

File hashes

Hashes for dcnr_scheduler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 90c280447c2aaf571323f06ac2075141d9f50ef3781ef89a804bba781f33b975
MD5 fb89e6773f2a0c7080daa7b7e3617254
BLAKE2b-256 3cf5f16d1392218b54461458792868fedff0b68856dfa1719ccd714c4bcc0bc8

See more details on using hashes here.

File details

Details for the file dcnr_scheduler-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dcnr_scheduler-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.4

File hashes

Hashes for dcnr_scheduler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7babd1be3b1995ad69c60f0c6d31570a17824445bb21cd02b59335f2d178a039
MD5 3bac2250d51da160fbe68d87cf921394
BLAKE2b-256 2be06aea2169ef6e2ca7f5ebdfdd443fca4db8b505562c699f0ce24655c212c2

See more details on using hashes here.

Supported by

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