summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoragronholm <devnull@localhost>2011-02-08 03:21:31 +0200
committeragronholm <devnull@localhost>2011-02-08 03:21:31 +0200
commit470e006c029d0b79bd308d678ac6b817e49d847a (patch)
tree93831f3d1a36bea5ca42867ec61a5971553a8dc0 /examples
parentd1d38c8833154082fcbfb72f36146b7ff35d6b41 (diff)
downloadapscheduler-470e006c029d0b79bd308d678ac6b817e49d847a.tar.gz
Fixed missing job store alias
Diffstat (limited to 'examples')
-rw-r--r--examples/persistent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/persistent.py b/examples/persistent.py
index 13f0790..1e77d1b 100644
--- a/examples/persistent.py
+++ b/examples/persistent.py
@@ -19,7 +19,7 @@ def alarm(time):
if __name__ == '__main__':
scheduler = Scheduler()
- scheduler.add_jobstore(ShelveJobStore('example.db'))
+ scheduler.add_jobstore(ShelveJobStore('example.db'), 'shelve')
alarm_time = datetime.now() + timedelta(minutes=1)
scheduler.add_date_job(alarm, alarm_time, name='alarm',
jobstore='shelve', args=[datetime.now()])