Justin Mooney07/31/2020, 8:10 PM
Chris White07/31/2020, 8:40 PM
task which you can then call the various task methods on:
It sounds like you want to create a dependency on the init task, which you can do by accessing this task as an attribute of the resource object:
with MyResource(...) as resource: resource.set_upstream(other_task)
my_resource = MyResource(...) my_resource.init_task.set_upstream(other_task) with my_resource: ...
Justin Mooney07/31/2020, 8:53 PM
Chris White07/31/2020, 8:54 PM
first_resource = FirstResource(...) second_resource = SecondResource(...) second_resource.init_task.set_upstream(first_resource.cleanup_task)
Justin Mooney07/31/2020, 8:55 PM
Chris White07/31/2020, 8:55 PM
with first_resource as resource: ... with second_resource as another_resource: ...
Justin Mooney07/31/2020, 8:58 PM
Chris White07/31/2020, 8:58 PM