dmwm / CRABServer

15 stars 38 forks source link

use HTC Python bindings to submit DAG's #8607

Open belforte opened 1 month ago

belforte commented 1 month ago

instead of forking a CLI command in https://github.com/dmwm/CRABServer/blob/3616cf5e4ac018be9445d77a1dca28e190edfa0c/src/python/TaskWorker/Actions/PreDAG.py#L335-L339

could use the python API, will make code easier to read and avoid the problem with duplicated queue statements #8585

instead of using -insert_sub_file FileName we should read subdag.jdl into a Submit object, create another Submit object using Submit.from_dag and combine the two in memory, then submit the final obejct.

See small discussion aroung this comment https://github.com/dmwm/CRABServer/issues/8272#issuecomment-2278765907

Or something like that !

belforte commented 1 month ago

not a priority though