Skip to content

Capture stderr separately when submitting to Slurm and LSF - #337

Open
jemus42 wants to merge 2 commits into
mainfrom
runoscommand-stderr
Open

jemus42 wants to merge 2 commits into
mainfrom
runoscommand-stderr

Conversation

@jemus42

@jemus42 jemus42 commented Dec 3, 2026

Copy link
Copy Markdown
Member

runOSCommand() merged stderr into stdout, so informational messages from sbatch or bsub ended up in the output that the backends parse for the batch id.
On sites that print such messages, jobs got ids like "will" or "that" and showed up as expired.

Changes:

The one visible API change is that the list returned by runOSCommand() has a fifth element, stderr.

Tested live on Slurm 25.11.8 (plain and array jobs). That cluster prints no banner, so the banner case itself is covered only by the unit tests and by the stdout/stderr split @bwcompton showed in #314.
@HenrikBengtsson @bwcompton, if you could try this branch on a site that prints such messages, that would close the gap.

Closes #243
Closes #244
Closes #314

🤖 Generated with Claude Code

@bwcompton

Copy link
Copy Markdown

I just tried this fix on the UMass (Massachuetts USA) Slurm cluster I first found the jobid = "that" error. With the current main branch, I still get "that"; with the fixed branch, it runs nicely. Success!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trouble with LSF support clusterFunctionsSlurm.R returns incorrect "batch.id"

2 participants