test
This commit is contained in:
parent
70de6f2d8b
commit
51b2b11d62
@ -8,6 +8,18 @@ class Scheduler():
|
|||||||
self.scheduler = jobs.Scheduler(self)
|
self.scheduler = jobs.Scheduler(self)
|
||||||
self.scheduler.start()
|
self.scheduler.start()
|
||||||
|
|
||||||
|
job = jobs.Job(
|
||||||
|
intervals=[5],
|
||||||
|
handler=self.fart,
|
||||||
|
threaded=False,
|
||||||
|
doc=None,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.scheduler.register(job)
|
||||||
|
|
||||||
|
def fart(self):
|
||||||
|
print("toots mcgoots")
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
"""
|
"""
|
||||||
Quick and dirty shortcuts. Will only get called for undefined attributes.
|
Quick and dirty shortcuts. Will only get called for undefined attributes.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user