-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from ArturAkh/main
Several improvements of gbasf2 handling Following options of using gbasf2 batch processing are improved/added: * possibility to add input datafiles with `gbasf2_input_datafiles` option, which will be downloaded from SE's in addition. This is useful in case the sandbox files exceed 10 MB. * improved rescheduling: instead of performing it for each single failed job separately, perform it at once. Keeping track of n_retries is still maintained in the implementation of this pull request. * improved downloading of datasets: in case of failed downloads only the ones which are failed, are downloaded, based on a collection of LFNs from created from `gb2_ds_get` stdout. * fix of RuntimeError ---> RuntimeWorking conversion: first argument of `warnings.warn` should be a string. Otherwise, getting a uncatched TypeError, followed by a PipeError of luigi. Edit 19.04.2021: * added an improved handling of the `JobStatus` for `Done` jobs, since in some (rare) cases, `JobStatus` is set to `Done`, while `ApplicationStatus` is not `Done` (in particular, has an Upload error for output file). * Implemented suggested minor code changes
- Loading branch information
Showing
16 changed files
with
347 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.6.2 | ||
current_version = 0.6.3 | ||
commit = True | ||
tag = True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/batch/_gbasf2_project_download_stdouts/all_failed.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
Download 3 files from SE | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000001_job1234567890_00.root to /local/dir/sub00/output_000001_job1234567890_00.root | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000002_job1234567891_00.root to /local/dir/sub00/output_000002_job1234567891_00.root | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000003_job1234567892_00.root to /local/dir/sub00/output_000003_job1234567892_00.root | ||
|
||
Successfully downloaded files: | ||
|
||
|
||
Failed files: | ||
/output/sub00/output_000001_job1234567890_00.root | ||
/output/sub00/output_000002_job1234567891_00.root | ||
/output/sub00/output_000003_job1234567892_00.root | ||
|
||
|
23 changes: 23 additions & 0 deletions
23
tests/batch/_gbasf2_project_download_stdouts/all_failed_and_duplicate.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
Download 3 files from SE | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000001_job1234567890_04.root to /local/dir/sub00/output_000001_job1234567890_04.root | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000002_job1234567891_00.root to /local/dir/sub00/output_000002_job1234567891_00.root | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000003_job1234567892_00.root to /local/dir/sub00/output_000003_job1234567892_00.root | ||
|
||
Successfully downloaded files: | ||
|
||
|
||
Failed files: | ||
/output/sub00/output_000001_job1234567890_04.root | ||
/output/sub00/output_000002_job1234567891_00.root | ||
/output/sub00/output_000003_job1234567892_00.root | ||
|
||
|
||
Files with duplicated jobID, not downloaded: | ||
/output/sub00/output_000001_job1234567890_00.root | ||
/output/sub00/output_000001_job1234567890_01.root | ||
/output/sub00/output_000001_job1234567890_02.root | ||
/output/sub00/output_000001_job1234567890_03.root | ||
(See https://confluence.desy.de/display/BI/GBasf2+FAQ#GBasf2FAQ-OutputfileswithduplicatedJobID) | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
tests/batch/_gbasf2_project_download_stdouts/all_successful.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/local/dir/sub00 already exists | ||
|
||
Download 1 files from SE | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000001_job1234567890_00.root to /local/dir/sub00/output_000001_job1234567890_00.root | ||
|
||
Successfully downloaded files: | ||
/output/sub00/output_000001_job1234567890_00.root in /ceph/akhmet/test_fei_gbasf2_example_input/sub00/output_000001_job1234567890_00.root | ||
|
||
|
||
Failed files: | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
tests/batch/_gbasf2_project_download_stdouts/all_successful_and_duplicate.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Download 1 files from SE | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000001_job1234567890_04.root to /local/dir/sub00/output_000001_job1234567890_04.root | ||
|
||
Successfully downloaded files: | ||
/output/sub00/output_000001_job1234567890_04.root in /local/dir/sub00/output_000001_job1234567890_04.root | ||
|
||
|
||
Failed files: | ||
|
||
|
||
Files with duplicated jobID, not downloaded: | ||
/output/sub00/output_000001_job1234567890_00.root | ||
/output/sub00/output_000001_job1234567890_01.root | ||
/output/sub00/output_000001_job1234567890_02.root | ||
/output/sub00/output_000001_job1234567890_03.root | ||
(See https://confluence.desy.de/display/BI/GBasf2+FAQ#GBasf2FAQ-OutputfileswithduplicatedJobID) | ||
|
||
|
||
|
15 changes: 15 additions & 0 deletions
15
tests/batch/_gbasf2_project_download_stdouts/failed_and_successful.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
Download 3 files from SE | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000001_job1234567890_00.root to /local/dir/sub00/output_000001_job1234567890_00.root | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000002_job1234567891_00.root to /local/dir/sub00/output_000002_job1234567891_00.root | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000003_job1234567892_00.root to /local/dir/sub00/output_000003_job1234567892_00.root | ||
|
||
Successfully downloaded files: | ||
/output/sub00/output_000001_job1234567890_00.root in /local/dir/sub00/output_000001_job1234567890_00.root | ||
|
||
|
||
Failed files: | ||
/output/sub00/output_000002_job1234567891_00.root | ||
/output/sub00/output_000003_job1234567892_00.root | ||
|
||
|
23 changes: 23 additions & 0 deletions
23
tests/batch/_gbasf2_project_download_stdouts/failed_and_successful_and_duplicate.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
Download 3 files from SE | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000001_job1234567890_04.root to /local/dir/sub00/output_000001_job1234567890_04.root | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000002_job1234567891_00.root to /local/dir/sub00/output_000002_job1234567891_00.root | ||
Trying to download srm://srm-storage-element:8443/srm/managerv2?SFN=/pnfs/to/output/sub00/output_000003_job1234567892_00.root to /local/dir/sub00/output_000003_job1234567892_00.root | ||
|
||
Successfully downloaded files: | ||
/output/sub00/output_000001_job1234567890_04.root in /local/dir/sub00/output_000001_job1234567890_04.root | ||
|
||
|
||
Failed files: | ||
/output/sub00/output_000002_job1234567891_00.root | ||
/output/sub00/output_000003_job1234567892_00.root | ||
|
||
|
||
Files with duplicated jobID, not downloaded: | ||
/output/sub00/output_000001_job1234567890_00.root | ||
/output/sub00/output_000001_job1234567890_01.root | ||
/output/sub00/output_000001_job1234567890_02.root | ||
/output/sub00/output_000001_job1234567890_03.root | ||
(See https://confluence.desy.de/display/BI/GBasf2+FAQ#GBasf2FAQ-OutputfileswithduplicatedJobID) | ||
|
||
|
1 change: 1 addition & 0 deletions
1
tests/batch/_gbasf2_project_statuses/all_done_but_application_error.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
tests/batch/_gbasf2_project_statuses/done_testjbucket1357828d80b3.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.