Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 611 Bytes

File metadata and controls

32 lines (20 loc) · 611 Bytes

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:

Imgur

1MiToswzMsrhQEfmZbLQT8PHC68E5JhJzh

Thanks.