Support HTCondor in CLUSTER_SLOTS_STATEMENT.sh#405
Merged
mvdbeek merged 3 commits intoJul 17, 2025
Conversation
HTCondor sets a couple of environment variables read by various frameworks to control the number of threads they are allowed to use. A list can be found on the HTCondor docs https://htcondor.readthedocs.io/en/24.0/admin-manual/configuration-macros.html#STARTER_NUM_THREADS_ENV_VARS. The list itself is configurable (it is an HTCondor configuration macro). Any of these variables can be used to set GALAXY_SLOTS. Set it using the variable ROOT_MAX_THREADS (designed to control the ROOT data analysis framework from CERN).
Contributor
Author
|
@bgruening, @mvdbeek does this make sense to you? |
Contributor
Author
|
This is what would happen if the PR was merged. galaxy@sn06:~$ cd /data/jwd06/pulsar_staging/86195857
galaxy@sn06:/data/jwd06/pulsar_staging/86195857$ cat external_id
"64664468"
galaxy@sn06:/data/jwd06/pulsar_staging/86195857$ condor_ssh_to_job 64664468
...
galaxy@vgcnbwc-worker-c8m40g1-0008:~/server$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d8e9fadbcd3d quay.io/bgruening/anylabeling:0.4.30 "/bin/sh /data/jwd06…" 2 minutes ago Up 2 minutes 5900/tcp, 0.0.0.0:32862->5800/tcp, :::32862->5800/tcp 11e6c2910bf447f3b78a9aceff0c069f
...
galaxy@vgcnbwc-worker-c8m40g1-0008:~/server$ docker exec -it d8e9fadbcd3d /bin/bash
root@d8e9fadbcd3d:/data/jwd06/pulsar_staging/86195857/working# echo $GALAXY_SLOTS
4 |
mvdbeek
reviewed
Jul 16, 2025
…bmitted jobs At the moment, Pulsar is using ROOT_MAX_THREADS (designed to control the ROOT data analysis framework from CERN) to set GALAXY_SLOTS. Switch to PYTHON_CPU_COUNT (controls the amount of CPUs that Python sees).
Contributor
Author
It should be good to merge now. |
Member
|
@mvdbeek is it realistic to get a new release, that Galaxy stable depends on? Or should we carry patches? |
mvdbeek
approved these changes
Jul 17, 2025
Member
|
We can do that, no problem |
Member
Member
|
Can I ask you to also open the same PR on galaxy and drop the hardcoding of galaxy_slots ? dev would be fine since this works |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HTCondor sets a couple of environment variables read by various frameworks to control the number of threads they are allowed to use. A list can be found in the HTCondor docs https://htcondor.readthedocs.io/en/24.0/admin-manual/configuration-macros.html#STARTER_NUM_THREADS_ENV_VARS. The list itself is configurable (it is an HTCondor configuration macro).
Any of these variables can be used to set GALAXY_SLOTS. Set it using the variable ROOT_MAX_THREADS (designed to control the ROOT data analysis framework from CERN).