-
Notifications
You must be signed in to change notification settings - Fork 79
adding recover jobs script #2135
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2135 +/- ##
==========================================
+ Coverage 92.04% 92.05% +<.01%
==========================================
Files 191 191
Lines 19515 19515
==========================================
+ Hits 17963 17964 +1
+ Misses 1552 1551 -1
Continue to review full report at Codecov.
|
ElDeveloper
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments, also can you check that scripts/qiita-recover-jobs is executable?
scripts/qiita-recover-jobs
Outdated
| qiita_jids = [] | ||
| for qj in qiita_jobs: | ||
| # to retrieve info about the jobs we need to use the fullname, so | ||
| # prepending .ucsd.edu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prepending -> appending
scripts/qiita-recover-jobs
Outdated
| status = set([ProcessingJob(v).status | ||
| for v in validators if v not in qiita_jids]) | ||
| # if there are no status, that means that the validators weren't | ||
| # created and we shour rerun from scratch (Step 4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shour -> should
scripts/qiita-recover-jobs
Outdated
|
|
||
| jids_to_recover = jids_to_recover - set(jobs_with_validators) | ||
|
|
||
| # Step 4: Finally, we recover all the left over jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left over -> leftover
As discussed during the qiita meeting this is an internal script to recover jobs once the system fails. @wasade and @josenavas, could you take a look?