Skip to main content

Scheduling python functions for execution.

Project description

dcnr-spring

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_spring-1.0.1.tar.gz (72.8 kB view details)

Uploaded Source

Built Distribution

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

dcnr_spring-1.0.1-py3-none-any.whl (62.8 kB view details)

Uploaded Python 3

File details

Details for the file dcnr_spring-1.0.1.tar.gz.

File metadata

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

File hashes

Hashes for dcnr_spring-1.0.1.tar.gz
Algorithm Hash digest
SHA256 64ffe15a1561e65ea6852b1478882d40dc73df9e61bf153ffb1aa3fb699357fa
MD5 afa862fcdc92bd9c3e7a5af9066c44de
BLAKE2b-256 c621cd93ed3c4b1df58018cc1a66ed2015257ad750ac47bdd35714e8512840fe

See more details on using hashes here.

File details

Details for the file dcnr_spring-1.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for dcnr_spring-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b87c0d89b5021b154349efd17773556d1a2a36588b09f8236d8e29f16d4392dd
MD5 ee0efbd195dad41f6bfc27b2560b0351
BLAKE2b-256 8906772dfe7b56091e0f2854e21698a3749c53692996622da92b4560783968cf

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