Mailing List Archives
Public Access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] interpolation using the python bindings
- Date: Thu, 06 Sep 2018 10:24:23 -0400
- From: Jose Caballero <jcaballero.hep@xxxxxxxxx>
- Subject: Re: [HTCondor-users] interpolation using the python bindings
Hi Tony
I already tried, and this is the best I got
>>> print classad.ExprTree("'$ENV(HOSTNAME)'").eval()
Undefined
which indeed doesn't really help too much.
Or is it resolved at submission time?
I guess it has to be, otherwise, not sure how it would work with
custom classads that depends on others like $(Cluster), which only get
a value after submission.
Thanks a lot.
Jose
2018-09-06 10:14 GMT-04:00 Anthony R Tiradani <tiradani@xxxxxxxx>:
> Hi Jose,
>
> I think you have to wrap the expressions in an ExprTree class. See https://htcondor-python.readthedocs.io/en/latest/classad.html#classad.ExprTree
>
> Thanks,
>
> --
> Anthony Tiradani
>
> ï-----Original Message-----
> From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Jose Caballero <jcaballero.hep@xxxxxxxxx>
> Reply-To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
> Date: Wednesday, September 5, 2018 at 2:04 PM
> To: Condor-Users Mail List <condor-users@xxxxxxxxxxx>
> Subject: [HTCondor-users] interpolation using the python bindings
>
> Hi,
>
> I am submitting jobs using the python bindings.
> Some of the submit file items in the dictionary for htcondor.Submit( )
> object are like these:
>
> 'foo' : ' "aaa $(Cluster) bbb" '
> 'bar' : ' "$ENV(HOSTNAME)" '
>
> [no white spaces between single and double quotes, I just included for
> readability]
>
> but the interpolation does not seem to happen. condor_q -l shows them
> unmodified:
>
> foo = "aaa $(Cluster) bbb"
> bar = "$ENV(HOSTNAME)"
>
> what would be the correct way to get them resolved?
> Is that something I must do myself before feeding them to Submit( )?
>
> Thanks a lot in advance,
> Jose
> _______________________________________________
> 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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_mailman_listinfo_htcondor-2Dusers&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=5PsfAQ_fLSL7f1osCT9L8r9FZaZ9NGnhiuijyN6ZNfM&m=f-OnwFKOEYHvntjf24Ey_tKbyqAHQZZVjqZ_wRlNZII&s=UBVpIQh4ADAEPaJMSZPXeIF-Fzj3dknSwnVTMO4IOmo&e=
>
> The archives can be found at:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_archive_htcondor-2Dusers_&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=5PsfAQ_fLSL7f1osCT9L8r9FZaZ9NGnhiuijyN6ZNfM&m=f-OnwFKOEYHvntjf24Ey_tKbyqAHQZZVjqZ_wRlNZII&s=r-r5iGOEFpbYW2H1LkKrUJgLM8amKbQAJ2hi8aHxirE&e=
>
>
>
> _______________________________________________
> 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/