rocketry
rocketry copied to clipboard
add: Custom arguments with custom cond
Now one can pass arguments when using a custom condition.
Now this should work:
from pathlib import Path
@app.cond()
def file_exists(file):
return Path(file).exists()
@app.task(file_exists("myfile.csv"))
def do_things():
...