Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

error out if --retry finds no failed jobs left to retry

  • Loading branch information...
commit 35bc49f6f91f7a65bb75d7f1f7f3ac60ea14ac44 1 parent 8ea495c
@lirazsiri lirazsiri authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  cloudtask/task.py
View
2  cloudtask/task.py
@@ -208,6 +208,8 @@ def main(cls):
elif opt_retry:
session = Session(opt_sessions, id=opt_retry)
session.jobs.update_retry_failed()
+ if not session.jobs.pending:
+ error("no failed jobs to retry")
taskconf = session.taskconf
else:
session = None
Please sign in to comment.
Something went wrong with that request. Please try again.