whirl icon indicating copy to clipboard operation
whirl copied to clipboard

Add an example where we actively add config to dags with a policy

Open krisgeus opened this issue 2 years ago • 0 comments

Would it make sense to also add an example where we actively add config to dags with a policy? Perhaps something like:

def task_assign_default_owner(task: BaseOperator):
    if not task.owner or task.owner.lower():
        task.owner = "baboon"

Originally posted by @danielvdende in https://github.com/godatadriven/whirl/pull/74#discussion_r927414417

krisgeus avatar Jul 22 '22 08:07 krisgeus