https://github.com/laggat/doevery
Running jobs regularly in threads.
https://github.com/laggat/doevery
cprofile profiling python scheduler threading threads
Last synced: about 1 year ago
JSON representation
Running jobs regularly in threads.
- Host: GitHub
- URL: https://github.com/laggat/doevery
- Owner: LaggAt
- License: gpl-3.0
- Created: 2018-03-18T19:08:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-07T08:02:40.000Z (about 1 year ago)
- Last Synced: 2025-01-21T21:31:28.121Z (about 1 year ago)
- Topics: cprofile, profiling, python, scheduler, threading, threads
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
README
# DoEvery
Running jobs regularly in threads.
## What is it
This is a spin-off of a closed source application. It's an easy way to start long-running processes regularly. See example.
## Example
```
def exampleTask(stopEv):
# do something long running every 15 seconds
pass
if __name__ == "__main__":
loop = DoEvery()
loop.RunAndRequeue(exampleTask, 15, loop.StopEvent)
loop.Loop(threadInfoInterval=60)
```
Thats it. More options see example in DoEvents.py
## Donate
Support me with bitcoins:

1MiToswzMsrhQEfmZbLQT8PHC68E5JhJzh
Thanks.