Skip to content

kylechenoO/Scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scheduler

  • Author Kyle
  • Version 20250822v1
  • Email [email protected]
  • A new crontab suppose to trigger jobs as per sec.

Quick Start

Deploy Guide

$ source bin/activate
  • Install dependences
$ tools/install_offline_pkg.sh
$ deactivate
  • Config jobs
$ vim etc/jobs.conf
## Sample:
## *   *   *   *     *       cmd
## sec min day month weekday command
## * * * * * * echo ">> $(date +%Y%m%d%H%M%S) Hello per 1 seconds"
## */5 * * * * * echo ">> $(date +%Y%m%d%H%M%S) Hello per 5 seconds"
## PLEASE ADD YOUR JOBS UNDER THIS
  • Start service on console
$ sudo /opt/miniforge/bin/python bin/Scheduler.py
  • Add to systemd Please ensure the path of the project is correct.
$ sudo cp -rvf systemd/scheduler.service /etc/systemd/system/scheduler.service
$ sudo systemctl daemon-reload
$ sudo systemctl enable scheduler
$ sudo systemctl restart scheduler
$ sudo systemctl status scheduler

Debug Procedures

  • logs under log/
$ tail -f log/scheduler.log

About

Revamp crontab to trigger jobs per second

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages