Repository navigation
Keep the workflow printout in run-workflow-on-inputlist.sh - #16169
Merged
Merged
Conversation
This is fixing a bug where the printed workflow could be missing from the stdout of run-workflow-on-inputlist.sh. - The output was copied to stdout by a tail started after one second and killed when the workflow ended. - When the workflow had already ended, tail could be killed before printing anything. - tail now follows a sentinel process with --pid, which is stopped only after all processes are done. - The final wait for tail is limited to 10 s, with a warning if it has to be stopped. https://its.cern.ch/jira/browse/O2-7359 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sawenzel
force-pushed
the
fix-inputlist-log-race
branch
from
November 21, 2026 17:30
41867e2 to
62e46cd
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is fixing a bug where the printed workflow could be missing from the stdout of run-workflow-on-inputlist.sh.
--pid, which is stopped only after all processes are done, so tail exits by itself after printing everything.This affected the extraction of the reco configuration in anchored MC (anchorMC.sh).
Note that the logging now relies on GNU tail (
--pid), like the rest of the script relies on Linux.https://its.cern.ch/jira/browse/O2-7359