Closed djjuhasz closed 1 month ago
@jraddaoui I'm not sure if we want to add the "CreateBagActivity" here, or just add it to preprocessing-sfa and preprocessing-moma?
P.S. I haven't tested this in dev yet, I'll do that tomorrow.
Thanks @djjuhasz! I kind of like having it here as an example, even if not all child workflows will need it. It also gives us the chance to improve the readme and the requirements to make it work with Enduro, I'll follow-up with that once this is merged.
I tested the preprocessing workflow, and bagging works... kind of. :(
The first time a transfer is submitted, a bag is created in place. If the same directory is submitted again, then bagging fails with an error:
CreateBagActivity: create bag: mkdir /home/preprocessing/shared/small/data: file exists
This error will occur any time a transfer with the same "relative path" (e.g. "small") is submitted because we are replacing the source transfer contents with a BagIt bag at the same path. When the same transfer path is submitted a second time, we try to re-bag the bag created by the first run. :(
I think we are going to need to create a unique working directory for each workflow instance to prevent errors on duplicate submissions and to prevent failed preprocessing workflows from leaving the source transfer in a partially transformed state.
The first time a transfer is submitted, a bag is created in place. If the same directory is submitted again, then bagging fails with an error:
CreateBagActivity: create bag: mkdir /home/preprocessing/shared/small/data: file exists
The above error doesn't occur when preprocessing is run as a child workflow of the Enduro processing workflow - Enduro creates a unique local transfer directory on each workflow run.
The first time a transfer is submitted, a bag is created in place. If the same directory is submitted again, then bagging fails with an error:
CreateBagActivity: create bag: mkdir /home/preprocessing/shared/small/data: file exists
The above error doesn't occur when preprocessing is run as a child workflow of the Enduro processing workflow - Enduro creates a unique local transfer directory on each workflow run.
Are you using the Tilt UI submit button? Should we just delete before copying here?
Codecov Report
Attention: Patch coverage is
78.57143%
with6 lines
in your changes are missing coverage. Please review.Additional details and impacted files
```diff @@ Coverage Diff @@ ## main #4 +/- ## ========================================== + Coverage 29.94% 34.92% +4.98% ========================================== Files 5 5 Lines 167 189 +22 ========================================== + Hits 50 66 +16 - Misses 115 120 +5 - Partials 2 3 +1 ```:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.