Skip to main content

A library for handle scheduled jobs.

Project description

CscTrackerQueueScheduler

This project is a Python job scheduling and queuing library. It allows jobs to be scheduled to run at specific periods and queues these jobs for execution.

Key Features

  • Job Scheduling: The Scheduler service (SchedulerService) allows jobs to be scheduled for execution at specified intervals. It supports intervals in seconds, minutes, hours, days, and weeks, as well as daily scheduling at a specific time.

  • Queue Service: Scheduled tasks are put in a queue (QueueService) for execution. Tasks can be queued with or without priority, which determines their order of execution.

Installing

Install and update using pip:

pip install csctracker-queue-scheduler

Documentation and Examples

COMING SOON

Simple Example

from csctracker_queue_scheduler.models.enums.time_unit import TimeUnit
from csctracker_queue_scheduler.services.scheduler_service import SchedulerService


def my_function(): print("Hello, world!")


SchedulerService.start_scheduled_job(
  function=my_function, period=5, time_unit=TimeUnit.SECONDS)

In the above example, my_function would be scheduled to run every 5 minutes.

Testing

Currently, this project does not have automated tests. They may be added in the future as needed.

Contributing

If you would like to contribute to this project, feel free to fork the repository, make your changes, and propose a pull request.

License

This project is under the MIT license. Please refer to the LICENSE file for more details.

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

csctracker-queue-scheduler-24.6.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file csctracker-queue-scheduler-24.6.1.tar.gz.

File metadata

File hashes

Hashes for csctracker-queue-scheduler-24.6.1.tar.gz
Algorithm Hash digest
SHA256 f6ae2bba1f049ec4029eb8d122678583808428ac840dcae7b443a793331d86f3
MD5 dfe21565f09d017cc71eb126dd54d662
BLAKE2b-256 919cf8f91bfa3eab4e4d26de28b898cbfeb1723f26ef90563641f5362b2dcf57

See more details on using hashes here.

File details

Details for the file csctracker_queue_scheduler-24.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for csctracker_queue_scheduler-24.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ab32b0d47972f59d7250585a8bb690364c78a57b678ce3ae78625b838dc83c2
MD5 bdb4fd71b4790bf89a7d6e7ed3e57259
BLAKE2b-256 fa0f7a71b1257fc5d6f518a43fac2062112ee0d5409233eebea41843fb72d8ac

See more details on using hashes here.

Supported by

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