Timekeeping and scheduling
Project description
Seledri
Overview
This project provides a robust task scheduling system, utilizing a Worker class for task execution and a Timekeeper class for managing task scheduling and lifecycle. It is designed to handle tasks efficiently, ensuring they are executed and cleaned up properly.
Features
- Task Execution: Execute tasks at specified times with the ability to pass arguments and keyword arguments.
- Task Scheduling: Schedule tasks with precision and handle their lifecycle.
- Logging: Comprehensive logging for monitoring task execution and job management.
- Modularity: Clear separation of concerns between task execution (
Worker) and scheduling (Timekeeper).
Installation
To set up the project environment, follow these steps:
- Clone the repository:
git clone https://your-repository-url.git
- Navigate to the project directory:
cd seledri
- Install dependencies
pip install apscheduler
Usage
...
Starting the Scheduler
from worker.worker_aps import Worker
from scheduler.timekeeper import Timekeeper
from pathlib import Path
# Initialize the Worker
worker = Worker(function_map_file=Path("path_to_function_map.json"))
# Start the worker
worker.start_worker()
# Initialize the Timekeeper with the worker instance
timekeeper = Timekeeper(persistence_file=Path("path_to_jobs.json"), worker_instance=worker)
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
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 seledri-0.0.1.tar.gz.
File metadata
- Download URL: seledri-0.0.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1057dfbfc2c7ec53afea6e7767fcde98edfb353c3b666bbe9e659e545425ff7
|
|
| MD5 |
e0764decf4a3cbbf9c000b5a5ccddf5c
|
|
| BLAKE2b-256 |
1e11b41d7e94486d09c3bb96d85311208d05b31ab3fe3521ba1f4cb663c4d253
|
File details
Details for the file seledri-0.0.1-py3-none-any.whl.
File metadata
- Download URL: seledri-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25e29188642e71d2a27f28ebacbfe7b56f59f5cd73b553cbfa5dc9647cca784a
|
|
| MD5 |
69e9ef7f527e8fbba4651cb7c2d8a4fc
|
|
| BLAKE2b-256 |
e7656baa10ec1dd01fa9b0cfef4221658464c398e01b64640e2dcb03f7dd6322
|