Skip to content
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

Bugfix #206

Merged
merged 3 commits into from
Oct 3, 2024
Merged

Bugfix #206

merged 3 commits into from
Oct 3, 2024

Conversation

roskamsh
Copy link
Collaborator

@roskamsh roskamsh commented Oct 2, 2024

This branch was created to fix a bug in the pipeline, that only occurred on resubmissions of the same job, if there was a global variable that was reassigned to a new value in the first task attempt. For example, in https://github.com/TARGENE/targene-pipeline/blob/main/modules/confounders.nf#L19-L20 :

When this process runs the first time, it executes this line and reassigns the value of qc_file from the value in the input channel (which is a file) to the outcome of this logic (with is a string). Therefore when it retries the process, the value of the variable qc_file is no longer a file, but a string. The task fails to resubmit because .getName() cannot execute on a string.

This happened in filterBED as well as some processes in the extract_traits.nf modules. Please see the referenced issue for clarification.

@roskamsh roskamsh self-assigned this Oct 2, 2024
@roskamsh roskamsh linked an issue Oct 2, 2024 that may be closed by this pull request
@roskamsh roskamsh added the bug Something isn't working label Oct 2, 2024
Copy link
Collaborator

@joshua-slaughter joshua-slaughter left a comment

Choose a reason for hiding this comment

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

This makes sense now! Yeah good catch I'm surprised as well this actually didn't pop up earlier.

@roskamsh roskamsh merged commit aa91144 into main Oct 3, 2024
17 checks passed
@roskamsh roskamsh deleted the bugfix branch October 3, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Processes with .getName() function fail upon retry
2 participants