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

Re: [HTCondor-users] Error on expressions that don't match



Hey Brian,


On Thu, Aug 15, 2013 at 5:24 PM, Brian Bockelman <bbockelm@xxxxxxxxxxx> wrote:
Hi Melo,

IIRC, the htcondor internals don't distinguish between errors and no matching jobs.

What happens if you do condor_qedit manually?

I get the following:

# this one fails
[vagrant@localhost sync]$ condor_qedit -constraint 'DAGManJobId =?= 2513 && DAGParentNodeNames =?= "JobSplitting"' HoldReason Test3
Failed to set attribute "HoldReason" by constraint: DAGManJobId =?= 2513 && DAGParentNodeNames =?= "JobSplitting"

# this one succeeds
[vagrant@localhost sync]$ condor_qedit -constraint 'TaskType =?= "ROOT" && CRAB_ReqName =?= "localhost_130818_205328_meloam_gwms_resub" && (isUndefined(CRAB_Attempt) || CRAB_Attempt == 0)' HoldReason Test3
Set attribute "HoldReason".

If the internals don't distinguish between errors and no matching jobs, I'll just need to catch RuntimeError and hope that the error was just a no matching job error and not something more serious?

Thanks,
Andrew
Â

Brian

Sent from my iPhone

On Aug 15, 2013, at 2:07 PM, Andrew Melo <andrew.m.melo@xxxxxxxxxxxxxx> wrote:

> Hello,
>
> I'm attempting to use the python bindings, and I'm hitting a bit of a flaw. If I do something like this:
>
> schedd.edit(rootConst, "HoldReason", "\"%s\"" % self.JOB_RESTART_HOLD_REASON)
>
> but, the constraint doesn't match any jobs, the _expression_ throws:
>
> RuntimeError: Unable to edit jobs matching constraint
>
> I can run condor_q -constraint manually on the command line, and running the same line with a slightly different constraint (which matches jobs) works. Am I right to assume that condor is complaining because I told it to edit a null list of jobs? If so, is there a way to change that behavior?
>
> Thanks,
> Andrew
>
> --
> --
> Andrew Melo
>
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/




--
--
Andrew Melo