-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use a Submit object, not a classAd (dagAd) as argument to schedd.submit #8336
Comments
harder than I thought :-( After some struggle I got to the point of submitting a dagman to the scheduler which as by design is in HOLD waiting for spool() command as in the current code CRABServer/src/python/TaskWorker/Actions/DagmanSubmitter.py Lines 548 to 549 in f499fd5
But I can't find a way to make mail textHi. I am trying to move to new way of submitting in python bindings But am facing an unexpected obstacle which I do not know how to solve. I am using bindings from HTCondor 23.7.2 Since in context of CMS CRAB we submit to remote schedulers, submitResult = schedd.submit(submit_object,...) So far we have been using the old format I have converted my code which used to pass a classAd object But I can't find a proper argument for schedd.spool() spool(ad_list) → None :
Note the : But the submit result object does not have a jobs() method !! I tried I tried with a list, but submitResult.clusterad() has a 'ClusterId' attribute but indeed not a ProcId nor Proc not "proc id" I am out of ideas Thanks Here's ToddM's answer
|
current state of the art is https://github.com/belforte/CRABServer/tree/add-user-policy-to-tape-recall-8354 By the way #8333 needs to be done at same time as this |
back to mundane things, there's bunch of things which have different name in JDL vs classAd (e.g. TransferInput vs transfer_input_files) and custom ads which I did not add the HTC ads which needs a different name in JDL
CRAB private ads which need the leading
|
submission works now. But Automatic splitting fails to submit the subdag with
fixed. |
* Revert "Revert "Run test jobs on crab sched 903 (#8472)" (#8474)" This reverts commit 0665454. * Revert "Run test jobs on crab sched 903 (#8472)" This reverts commit c5ec3ef. * Revert "ensure proxyfile in RestInfoForFileTransfers.json is a filename w/o path. Fix #8464 (#8467)" This reverts commit 9ced4fd. * Revert "workaround for #8456 (#8466)" This reverts commit 602f8d6. * Revert "Update makeTests.py: collector param does not allow port #. Simply put FNAL first" This reverts commit 7ac2b90. * Revert "Update makeTests.py: add collector port for ITB" This reverts commit f6c01eb. * Revert "do not set RequestCpus in task submission JDL. Fix #8456 (#8457)" This reverts commit 198e2d3. * Revert "pass string, not bytes, to htcondor.param Fix #8450 (#8452)" This reverts commit 856d1ef. * Revert "schedd.xquery is deprecated. Use schedd.query. Fix #8447 (#8449)" This reverts commit b129645. * Revert "new format of schedd.submit)/spool() fix #8336 fix #8333 (#8448)" This reverts commit 806226a. * Revert "do not indicate unused args in FTS calls. Fix #8460 (#8475)" This reverts commit 20d4f90.
* Revert "Revert "Run test jobs on crab sched 903 (dmwm#8472)" (dmwm#8474)" This reverts commit 0665454. * Revert "Run test jobs on crab sched 903 (dmwm#8472)" This reverts commit c5ec3ef. * Revert "ensure proxyfile in RestInfoForFileTransfers.json is a filename w/o path. Fix dmwm#8464 (dmwm#8467)" This reverts commit 9ced4fd. * Revert "workaround for dmwm#8456 (dmwm#8466)" This reverts commit 602f8d6. * Revert "Update makeTests.py: collector param does not allow port #. Simply put FNAL first" This reverts commit 7ac2b90. * Revert "Update makeTests.py: add collector port for ITB" This reverts commit f6c01eb. * Revert "do not set RequestCpus in task submission JDL. Fix dmwm#8456 (dmwm#8457)" This reverts commit 198e2d3. * Revert "pass string, not bytes, to htcondor.param Fix dmwm#8450 (dmwm#8452)" This reverts commit 856d1ef. * Revert "schedd.xquery is deprecated. Use schedd.query. Fix dmwm#8447 (dmwm#8449)" This reverts commit b129645. * Revert "new format of schedd.submit)/spool() fix dmwm#8336 fix dmwm#8333 (dmwm#8448)" This reverts commit 806226a. * Revert "do not indicate unused args in FTS calls. Fix dmwm#8460 (dmwm#8475)" This reverts commit 20d4f90.
an htcondor.Submit object should be used as first argument to
schedd.submit
inCRABServer/src/python/TaskWorker/Actions/DagmanSubmitter.py
Line 543 in 6f65ad6
as documented in the
submit
paragraph of interacting with schedulerssee also #8333 (comment)
Use the syntax of submission file so that description is simpler and more clear and conversion to classAd is done by HTCondor
This is a bit non trivial since we need to make sure that all submission ads are properly handled, submitting a few test tasks is not enough to validate.
Hopefully DagmanSubmitter will be easier to read after this.
The text was updated successfully, but these errors were encountered: