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

Minor bug in r.abin #196

Open
JanPolena opened this issue Dec 3, 2024 · 2 comments · May be fixed by #191
Open

Minor bug in r.abin #196

JanPolena opened this issue Dec 3, 2024 · 2 comments · May be fixed by #191

Comments

@JanPolena
Copy link

I found a minor bur in r.abin file, specifically lines 13 and 14:

#$ -cwd -notify
#$ -q kq-32-8 -pe shm 1

#$ is read by Unix systems as a "command" similary to #! when writing #!/bin/bash instead of comment line.

I would recommend changing to:

# #$ -cwd -notify
# #$ -q kq-32-8 -pe shm 1
@JanPolena
Copy link
Author

Hello @danielhollas,

I found a minor bug and suggested a quick fix.

Regarding the error message:
After sending the simulation on the PHOTOX Krypton node using

qsub -q nodename -cwd -V r.abin,

server's response was:

error: executing task of job 277064 failed: execution daemon on host "k02.vscht.cz" didn't accept task

Best regards,
Jan

@danielhollas danielhollas linked a pull request Dec 11, 2024 that will close this issue
@danielhollas
Copy link
Contributor

danielhollas commented Dec 12, 2024

@JanPolena thank you for the report! 👋

#$ is read by Unix systems as a "command" similary to #! when writing #!/bin/bash instead of comment line.

#$ is actually a syntax specific to the SGE scheduler that's used on Prague clusters. Instead of passing parameters on command line, one can specify them in the script itself.

I agree that we shouldn't include the queue name in the script. I do want to keep the #$ -cwd -notify line. -cwd is afaik always needed. -notify is a somewhat obscure option that is needed so that when you issue the qdel command, the queuing system issues a SIGUSR2 signal to the script, which can then handle it. We use it here:

trap copy_from_scrdir EXIT SIGUSR2

I've made some changes in #191, if you could take a look that would be great!

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 a pull request may close this issue.

2 participants