Skip to content

Commit

Permalink
0.2.6 release
Browse files Browse the repository at this point in the history
Little fix in example, added random sleep in example job
  • Loading branch information
Stanislav Kaledin committed Apr 12, 2018
1 parent 6313bce commit 0f9224d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/example_apscheduler/example_apscheduler/jobs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import random
import time

from apscheduler.schedulers.background import BackgroundScheduler
Expand All @@ -8,8 +9,9 @@
scheduler.add_jobstore(DjangoJobStore(), "default")


@register_job(scheduler, "interval", seconds=30, replace_existing=True)
@register_job(scheduler, "interval", seconds=5, replace_existing=True)
def test_job():
time.sleep(random.randrange(1, 100, 1)/100.)
print("I'm a test job!")
# raise ValueError("Olala!")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='django-apscheduler',
version='0.2.5',
version='0.2.6',
description='APScheduler for Django',
classifiers=[
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit 0f9224d

Please sign in to comment.