Miksus / rocketry

Modern scheduling library for Python
https://rocketry.readthedocs.io
MIT License
3.27k stars 108 forks source link

ENH: multiple tasks in "after task '...'" syntax #21

Closed Miksus closed 2 years ago

Miksus commented 2 years ago

Is your feature request related to a problem? Please describe. This is too laboursome:

@FuncTask(start_cond="after task 'task-1' & after task 'task-2' & after task 'task-3'")
def do_things():
    ...

Describe the solution you'd like Instead it could work like:

@FuncTask(start_cond="after tasks 'task-1', 'task-2', 'task-3'")
def do_things():
    ...

or:

@FuncTask(start_cond="after tasks 'task-1', 'task-2', 'task-3' succeeded")
def do_things():
    ...