PySlurm / pyslurm

Python Interface to Slurm
https://pyslurm.github.io
GNU General Public License v2.0
474 stars 116 forks source link

Slurm job submit with "--phx-priority" error #249

Closed huochaitiantang closed 1 year ago

huochaitiantang commented 1 year ago

When I try to submit a job by the code like https://github.com/PySlurm/pyslurm/blob/main/tests/test_job.py#L10-L25 There is an error:

python: error: job must not use --phx-priority when user priority is none.
Traceback (most recent call last):
  File "test_job.py", line 22, in <module>
    test_job_submit()
  File "test_job.py", line 13, in test_job_submit
    test_job_id = pyslurm.job().submit_batch_job(test_job)
  File "pyslurm/pyslurm.pyx", line 2786, in pyslurm.pyslurm.job.submit_batch_job
ValueError: ('Batch job submission failed: %s', None)

Is there any solution? Thanks!

tazend commented 1 year ago

Hi @huochaitiantang

Could please also provide the following information?

Is this message showing on a local slurm installation, or on a HPC-Cluster you are using? If it is the latter, I believe this error might be a message returned from a custom job-submit plugin that is installed.

What happens if you submit a job like this with sbatch (same properties as the pyslurm test job):

sbatch -J pyslurm_test_job -n 2 -c 3 --wrap="sleep 3600"

Is the error message also showing when using sbatch?

huochaitiantang commented 1 year ago

Is this message showing on a local slurm installation, or on a HPC-Cluster you are using? If it is the latter, I believe this error might be a message returned from a custom job-submit plugin that is installed.

Yes, you are right. I have found some extra parameters (eg. --phx-priority) in our custom slurm. Thank you very much!