I have list of dags based on categories. These dags should be called from master dag based on priority of categories(to avoid resource constraint).
My thought is to create a python script, where these category dags should be triggered based on priority(not time based) which we set in metadata table. This python script will be called in master dag using bashoperator.
To be clear, Master dag should be time based. Sub dags should be triggered from master based on priority.
My questions are..
1)Is dag can be triggered using python? without time based. 2)I want to run few category dags in parallel. How this can be accomplished. Kindly help me to fix this problem.