We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b60890c + 43e499c commit 4c90d0cCopy full SHA for 4c90d0c
pulsar/managers/util/job_script/CLUSTER_SLOTS_STATEMENT.sh
@@ -26,6 +26,12 @@ elif [ -n "$LSB_DJOB_NUMPROC" ]; then
26
elif [ -n "$GALAXY_SLOTS" ]; then
27
# kubernetes runner injects GALAXY_SLOTS into environment
28
GALAXY_SLOTS=$GALAXY_SLOTS
29
+elif [ -n "$PYTHON_CPU_COUNT" ]; then
30
+ # HTCondor sets several environment variables, including PYTHON_CPU_COUNT,
31
+ # to control how many threads jobs may spawn. A list is available in the
32
+ # HTCondor documentation https://htcondor.readthedocs.io/en/24.0
33
+ # /admin-manual/configuration-macros.html#STARTER_NUM_THREADS_ENV_VARS.
34
+ GALAXY_SLOTS="$PYTHON_CPU_COUNT"
35
else
36
GALAXY_SLOTS="1"
37
unset GALAXY_SLOTS_CONFIGURED
0 commit comments