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

[HTCondor-users] Remove all jobs run by a user / owner via python script.



Hi Guys,
        ÂI need to allow users to remove all or few jobs submitted by them using a pythonÂscript.Â

I am using following codes :-Â

def remove_jobs(user):
    Âschedd = htcondor.Schedd()
    Âschedd.act(htcondor.JobAction.Remove, f'Owner == "{user}"')

But the above codes seem to be not working as expected.

Even if NO job is runÂby the user above code doesn't throw an exceptionÂwhich meansÂits not working correctly.

Someone please help how can I achieve this?

Thanks,
Gagan