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
Snakemake with --cluster-status flag failing #1001
Comments
I ran into the same issue. On many systems a cluster job submission command (e.g. qsub) immediately returns just a job ID string, and it seems that snakemake relies on this behavior to pass the job ID to the --cluster-status script. However, on some systems the returned message by e.g. qsub is more than a job ID. On my system it's like 'Your job xxxxx ("xxx.sh") has been submitted'. The entire message is appended as argument to the --cluster-status script without quoting, leading to this error. I have tried this temporary work around below, which seems to be working but I'm not sure. Modifying the code snippet below in <snakemake_install_dir>/snakemake/executors/__init__.py script at the line where the exception happened: Original code:
Modified the above code by adding single quotes around {jobid}:
Then in the --cluster-status python script, do something like:
Edit: I noticed that the {jobid} quoting is now fixed in #1459 |
Hello- a little late, but might be useful to someone down the line. I was having similar problems with sge. It was returning a string to snakemake and snakemake was using that string to pass to my cluster-status script, causing a initially hard to debug situation. Ultimately, for qsub, all you need to do is specify I modified my qsub instance for the bsub output you list above (I also did a quick search, and it seems there is no bsub option to just return the job id. Here it is:
|
Hello,
I am trying to get snakemake file to run on LSF using the --cluster-status flag. I create a status1.py file and snakemake is crashing while trying to execute the file. It appears that snakemake trying to execute the command
./status1.py Job <615515> is submitted to queue <short>
but is crashing because the <> brackets are not parsable from the bash command line. Is there a work around?Thank you for the help
The text was updated successfully, but these errors were encountered: