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

Fix submit command in error message for grid executors that pipe wrapper script #3548

Merged
merged 2 commits into from
Feb 3, 2023

Conversation

bentsherman
Copy link
Member

Closes #3024

Some grid executors pipe the wrapper script to their submit command (e.g. LSF). In this case, when a task fails and Nextflow prints an error message, the submit command is incorrect because it doesn't include the pipe. For example:

Caused by:
  Failed to submit process to grid scheduler for execution

Command executed:

  bsub

Command exit status:
  -

Command output:
  (empty)

The submit command in this case should be bsub < .command.run.

This PR changes the error message to append < .command.run to the command if the wrapper script was piped into the submit command.

…wrapper script

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@pditommaso
Copy link
Member

Added unit test 👍

@pditommaso pditommaso merged commit 40ebd30 into master Feb 3, 2023
@pditommaso pditommaso deleted the 3024-fix-grid-submit-command branch February 3, 2023 22:05
abhi18av pushed a commit to abhi18av/nextflow that referenced this pull request Oct 28, 2023
…per script (nextflow-io#3548)


Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors during job submission are not logged anywhere
2 participants