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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dcnr_spring-1.0.0.tar.gz.
File metadata
- Download URL: dcnr_spring-1.0.0.tar.gz
- Upload date:
- Size: 72.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03cc1ef636e1780967882d54c7ea5d471bef0b6e2622feac8b72bf3bd2d169df
|
|
| MD5 |
2a47feef40161e306956354a8917d791
|
|
| BLAKE2b-256 |
276711c1fadd2deb64e58f85b4ab1360eb33d6c1b88c5cd4891181c77f25f873
|
File details
Details for the file dcnr_spring-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dcnr_spring-1.0.0-py3-none-any.whl
- Upload date:
- Size: 62.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2020a238ab0cb6b343921ef1a80884cd7c6f3e267bd6a251e65a7ad50a9a06e4
|
|
| MD5 |
8b7ea41f5624ed33a3762dfa9b886d87
|
|
| BLAKE2b-256 |
068e4366a1f1afbfb61bcb5c4c29c6579c8c60ca9f7e4ff0252d749d0483cbec
|