Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restarting a job after stopped by exception #20

Open
sicenul opened this issue Jan 26, 2021 · 0 comments
Open

restarting a job after stopped by exception #20

sicenul opened this issue Jan 26, 2021 · 0 comments

Comments

@sicenul
Copy link

sicenul commented Jan 26, 2021

@tl.job(interval=timedelta(seconds=10))
def sample_job_every_10s():
   try:
       print "10s job current time : {}".format(time.ctime())
   except Exception as e:
       print(e)
       pass

Assume that there is an error and successfully catched by try except. The timeloop job is stopped, and not rechecking after 10s.
So, can I restart the timeloop job again? How?
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant