We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c162141 commit 1039694Copy full SHA for 1039694
pyscheduler/__init__.py
@@ -40,6 +40,11 @@ def __init__(self):
40
self.start()
41
42
def run(self):
43
+ LOGGER.warn(
44
+ 'Scheduler will be starting until all scheduled tasks have been registered.',
45
+ extra={'function': __name__})
46
+ time.sleep(5)
47
+ LOGGER.warn('Scheduler has started.', extra={'function': __name__})
48
while True:
49
for task, kwargs in schedule.tasks.items():
50
entry = CronTab(kwargs['cron'])
pyscheduler/examples.py
@@ -1,4 +1,4 @@
1
-from pyscheduler import schedule, TaskTrigger
+from pyscheduler import schedule
2
3
4
@schedule('* * * * *')
@@ -12,4 +12,4 @@ def crawl_task():
12
13
14
if __name__ == '__main__':
15
- TaskTrigger()
+ print 'Test started.'
0 commit comments