-
Couldn't load subscription status.
- Fork 79
split qiita cron job #2543
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
split qiita cron job #2543
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #2543 +/- ##
==========================================
+ Coverage 94.41% 94.41% +<.01%
==========================================
Files 160 160
Lines 19453 19458 +5
==========================================
+ Hits 18367 18372 +5
Misses 1086 1086
Continue to review full report at Codecov.
|
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.
Looks good, just some minor suggestions in the help text.
scripts/qiita-cron-job
Outdated
|
|
||
| @commands.command() | ||
| @click.option('--remove/--no-remove', default=True, | ||
| help=('remove files from that are leftover in the ' |
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.
Not sure what the help text in here means, would you mind rephrasing. Also, the parenthesis are not needed.
scripts/qiita-cron-job
Outdated
|
|
||
| @commands.command() | ||
| @click.option('--remove/--no-remove', default=False, | ||
| help='check the filesystem and remove not used') |
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.
Files that are not used?
scripts/qiita-cron-job
Outdated
|
|
||
| @commands.command() | ||
| @click.option('--remove/--no-remove', default=True, | ||
| help=('remove files from the trash folder within the upload ' |
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.
No need for the parenthesis here.
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.
Minor comment
.travis.yml
Outdated
| - kill $QIITA_PID | ||
| - if [ ${TEST_ADD_STUDIES} == "True" ]; then test_data_studies/commands.sh ; fi | ||
| - if [ ${TEST_ADD_STUDIES} == "True" ]; then qiita-cron-job ; fi | ||
| - if [ ${TEST_ADD_STUDIES} == "True" ]; then qiita-cron-job empty_trash_upload_folder ; qiita-cron-job generate_biom_and_metadata_release ; qiita-cron-job purge_filepaths ; qiita-cron-job purge_files_from_filesystem ; qiita-cron-job update_redis_stats ; fi |
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.
would it make sense to pack this into a single script so it doesn't lead to a such a long single line in the configuration file?
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.
sure ... if you feel strong about it ... let me know.
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.
thinking about it, this might be useful for other reasons, just added.
Discussing with @jdereus we realized that the full qiita-cron-job is taking too long in the system so I thought splitting in smaller commands will allow us to parallelize the commands and also test each step.