Hi Guys,
         ÂI need users to be able to remove selected jobs from the queue.Â
I am using following python codes to achieve this :-Â
def remove_jobs(ans):
   Â         Â
        if ans == "ALL":
            result = schedd.act(htcondor.JobAction.Remove, f'Owner == "{getpass.getuser()}"')
            print(f"Jobs successfully removed: {result['TotalSuccess']}")
        if type(ans) == list:
                result = schedd.act(htcondor.JobAction.Remove, f'Owner == {getpass.getuser()} && ProcID == ans')
                print(f"Jobs successfully removed: {result['TotalSuccess']}")
Using above codes users are able remove ALL jobs from the queue but they aren't able to remove selected jobs ( stored in list ans ).
PleaseÂlet me know what I am missing here.
Thanks,
Gagan