test
This commit is contained in:
parent
51b2b11d62
commit
5b3f2cc94b
@ -6,17 +6,19 @@ class Scheduler():
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.scheduler = jobs.Scheduler(self)
|
self.scheduler = jobs.Scheduler(self)
|
||||||
self.scheduler.start()
|
|
||||||
|
|
||||||
job = jobs.Job(
|
job = jobs.Job(
|
||||||
intervals=[5],
|
[5],
|
||||||
|
plugin='coretasks',
|
||||||
|
label='throttle_join',
|
||||||
handler=self.fart,
|
handler=self.fart,
|
||||||
threaded=False,
|
threaded=True,
|
||||||
doc=None,
|
doc=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.scheduler.register(job)
|
self.scheduler.register(job)
|
||||||
|
|
||||||
|
self.scheduler.start()
|
||||||
|
|
||||||
def fart(self):
|
def fart(self):
|
||||||
print("toots mcgoots")
|
print("toots mcgoots")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user