...
10/20/20 11:58:58 From submit: Submitting job(s)ERROR on Line 13 of submit file: $CHOICE() macro: myindex is invalid index!
10/20/20 11:58:58 failed while reading from pipe.
10/20/20 11:58:58 Read so far: Submitting job(s)ERROR on Line 13 of submit file: $CHOICE() macro: myindex is invalid index!
10/20/20 11:58:58 ERROR: submit attempt failed
...
- Perhaps use requirements. Greg will send an example
- SOLUTION:
- DAG:
- JOB step05 step05.htc
- #VARS step05 SITE="chtc"
- #VARS step05 SITE="aws"
- Submit:
- +NRAOAttr = "$(SITE)"
- Requirements = My.NRAOAttr == "chtc" ? PoolName == "CHTC" : PoolName =!= "CHTC"
Requirements = My.NRAOAttr == "chtc" ? (Target.HasCHTCStaging == true) : (Target.HasCHTCStaging =!= true)
- myannex = "krowe-annex"
- +MayUseAWS = True
Requirements = My.NRAOAttr == "aws" ? AnnexName == $(myannex) : AnnexName =!= $(myannex)
- I would set myannex in the DAG but when I do that it tries to find an AnnexName of "krowe - annex" (note spaces)
- Is there a recommended way to start annexes from a DAG? We have been using PRE scripts but sometimes it seems to fail.
- CHTC is working on a BEGIN syntax (provision) that will block a DAG node from starting until the annex is ready.
- We could have the script not return until the annex is ready.
- We could also have the job require a specific name that the create_annex creates.
...