Hello,
I'm trying to do something similar here: I need to scan a directory containing sub-directories to process.
I created a python function which scans the directory and then uses TriggerDagRunOperator to start processing on each folder.
It works but launching the execution of TriggerDagRunOperator looks hack-ich . Is there a better way to do that, or should I attempt to write a TriggerMulipleDagRunOperator?
Here is my code:
https://gist.github.com/ludovicc/bb753eb8d2a11e6b042d44a90965d6f5Another issue, I can see in the log errors like "Duplicate entry 'pre_process_dicom-2016-04-18 17:43:46' for key 'dag_id'". Do you have any idea what is going on here?
Thanks,
Ludovic