You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to share a brief feedback regarding working with LSF. batchspawner works fine for me with LSF; however, I noticed one thing. Usually, bjobs command returns a host list using ":" as a separator as follows: RUN host1:host1
Meanwhile, if LSB_SHORT_HOSTLIST=1 is defined in lsf.conf, bjobs returns the list using a shorter format as follows: RUN 2*host1
which makes a wrong URL, i.e., http://2*host1. So, to avoid this problem and accept both cases correctly, I modified the return statement in state_gethost() in LsfSpawner using re.sub() as follows:
Even though this change (removing the n* before the hostname) works for me, a better way may be inheriting and overriding regex(exechost_re) in the class LsfSpawner as well as TorqueSpawner. I hope this helps those with a problem regarding the host list in LSF.
Alternative options
Inheriting and overriding regex(exechost_re) in the class LsfSpawner
Who would use this feature?
LSF users
(Optional): Suggest a solution
The text was updated successfully, but these errors were encountered:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Proposed change
I want to share a brief feedback regarding working with LSF.
batchspawner
works fine for me with LSF; however, I noticed one thing. Usually,bjobs
command returns a host list using ":" as a separator as follows:RUN host1:host1
Meanwhile, if
LSB_SHORT_HOSTLIST=1
is defined inlsf.conf
,bjobs
returns the list using a shorter format as follows:RUN 2*host1
which makes a wrong URL, i.e.,
http://2*host1
. So, to avoid this problem and accept both cases correctly, I modified the return statement instate_gethost()
inLsfSpawner
usingre.sub()
as follows:Even though this change (removing the n* before the hostname) works for me, a better way may be inheriting and overriding regex(
exechost_re
) in the classLsfSpawner
as well asTorqueSpawner
. I hope this helps those with a problem regarding the host list in LSF.Alternative options
Inheriting and overriding regex(
exechost_re
) in the classLsfSpawner
Who would use this feature?
LSF users
(Optional): Suggest a solution
The text was updated successfully, but these errors were encountered: