Skip to content

Conversation

@antgonza
Copy link
Member

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?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 91.948% when pulling f57da67 on antgonza:recover-jobs-script into 659cb94 on biocore:master.

@codecov-io
Copy link

codecov-io commented Aug 3, 2017

Codecov Report

Merging #2135 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2135      +/-   ##
==========================================
+ Coverage   92.04%   92.05%   +<.01%     
==========================================
  Files         191      191              
  Lines       19515    19515              
==========================================
+ Hits        17963    17964       +1     
+ Misses       1552     1551       -1
Impacted Files Coverage Δ
qiita_db/test/test_analysis.py 98.34% <0%> (+0.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a058102...2505dc5. Read the comment docs.

Copy link
Contributor

@ElDeveloper ElDeveloper left a 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?

qiita_jids = []
for qj in qiita_jobs:
# to retrieve info about the jobs we need to use the fullname, so
# prepending .ucsd.edu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prepending -> appending

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shour -> should


jids_to_recover = jids_to_recover - set(jobs_with_validators)

# Step 4: Finally, we recover all the left over jobs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left over -> leftover

@ElDeveloper ElDeveloper merged commit 540bbe4 into qiita-spots:master Aug 8, 2017
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

Successfully merging this pull request may close these issues.

5 participants