Skip to main content

task-scheduler

task-scheduler is an in-process scheduler to arrange and run the task periodically according to YAML config file

Inspired by schedule

Usage

$ pip intall taskscheduler
$ taskscheduler -f tasks.yml

The format of tasks.yml is as below:

task:
   <First task name>
     schedule_time_unit: [seconds/minutes/hours/day/monday/Thusday]
     schedule_time_every: 1
     prepare:
        - <shell command>
        - <shell command>
     jobs:
       <jobname>:
         - <shell command>
       <jobname>:
         - <shell command>

In the example below, we have two jobs in tasks.yml, a prepare job is used to install the additional package and print some messages:

task:
   schedule_task1:
     schedule_time_unit: seconds
     schedule_time_every: 2

     jobs:
       test1:
         - echo 'Hi, this is task-scheduler'

   schedule_task2:
     schedule_time_unit: minutes
     schedule_time_every: 2

     prepare:
       - pip install pyyaml

     jobs:
       test1:
         - echo 'Hello world'

Usage: py-task-scheduler -f task.yaml

Metadata

Release files for py-task-scheduler 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-task-scheduler 0.0.3
File Size Uploaded Provenance Actions
py-task-scheduler-0.0.3.tar.gz 3.3 kB Without provenance Details for py-task-scheduler-0.0.3.tar.gz

Release files / py-task-scheduler-0.0.3.tar.gz

Download URL py-task-scheduler-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fdfd1243405fb3c2bfcecaec1b4d8457b03ac337e0443c2744437e622eef1d10
BLAKE2b-256 checksum
How to use checksums
4e27cf3936e18727f7a882519f02183df6c873a1b061772774470f6bdec9f2da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for py-task-scheduler 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page