[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Change JobOwner in Python

No, once a job has been submitted the JobOwner attribute cannot be changed.    The JobOwner is marked as an IMMUTABLE attribute, and so the Schedd will not let you change it.  The JobOwner is the Unix/Windows identity of the job, and it would be a security violation for it to change, and because of this the Schedd keeps some internal data structures about the jobs owned by a specific uuser and will not update those data structures except when jobs are created and destroyed.


This is not an issue specific to the Python binding,  the JobOwner cannot be changed by any tool, and will not be changed by the Schedd itself.


You will have to remove the job, and submit a new job with a new owner.


You can, however, change the AccountingGroup attribute of the job, which will be used by the HTCondor negotiator and by the Accountant If it exists.  




From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of dario.rodriguez@xxxxxxxxxxxx
Sent: Sunday, April 19, 2020 2:47 PM
To: htcondor-users@xxxxxxxxxxx
Subject: [HTCondor-users] Change JobOwner in Python


It is possible to change the job ownership in Python binding?