summaryrefslogtreecommitdiff
path: root/examples/executors
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2014-04-06 19:16:58 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2014-04-06 19:17:28 +0300
commit70aa9225f9d01d67fb9e05dc61ecce356aa38bda (patch)
tree0c69d49e4367ccaf1d542710f4be4207ee80303a /examples/executors
parent75e0ba9655f201fb0f783e3c52fa6adbc241a82b (diff)
downloadapscheduler-70aa9225f9d01d67fb9e05dc61ecce356aa38bda.tar.gz
Switched the order of the "func" and "trigger" parameters around in add_job()
Added the possibility to run jobs directly without scheduling
Diffstat (limited to 'examples/executors')
-rw-r--r--examples/executors/processpool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/executors/processpool.py b/examples/executors/processpool.py
index e76eaa6..57d8575 100644
--- a/examples/executors/processpool.py
+++ b/examples/executors/processpool.py
@@ -15,7 +15,7 @@ def tick():
if __name__ == '__main__':
scheduler = BlockingScheduler()
scheduler.add_executor(ProcessPoolExecutor(scheduler))
- scheduler.add_job('interval', tick, seconds=3)
+ scheduler.add_job(tick, 'interval', seconds=3)
print('Press Ctrl+C to exit')
try: