Periodic task with timezone
Project description
Periodic task with timezone
from periodtask import Task, Period, send_mail
task = Task(
name='test',
command=('/periodtask/test_script.py',),
periods=[
Period(
timezone='Europe/Budapest',
minutes=list(range(0, 60)),
seconds=list(range(0, 60, 5)),
)
],
run_on_start=True,
mail_failure=True,
mail_success=True,
mail_skipped=True,
wait_timeout=5,
stop_signal=signal.SIGINT,
send_mail_func=send_mail,
from_email='richardbann@gmail.com',
recipient_list=['richard.bann@vertis.com']
)
task.start()
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
periodtask-0.0.1.tar.gz
(4.5 kB
view details)
File details
Details for the file periodtask-0.0.1.tar.gz
.
File metadata
- Download URL: periodtask-0.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d9f9e4666892a28d73c35e69aab4494f703e85caf002c6e0cd5f8730c2439f1 |
|
MD5 | f87eb60994f2844d331a3bc1f8e7682a |
|
BLAKE2b-256 | a28e734cec740b219f247bf298c74ea7112fd214e02ebd1b183bbddda3ad9e51 |