Open evanraalte opened 1 year ago
Just fixed it by checking out the run
method from app.session
. It should be:
from rocketry import Rocketry
app = Rocketry()
@app.task()
def do_things():
print("Getting here")
if __name__ == "__main__":
app.session.run("do_things",)
Could you confirm that this is indeed the correct way to call it? If so, I can make a PR to update the docs.
Describe the bug I'm trying to run the example described here.
It seems that the
do_things
function is not executed, when running the exampleThe expected behaviour is
To Reproduce I modified the example a bit, so that files are touched and hence I can verify that the function
do_things
is run correctly.main.py:
pyproject.toml:
Run:
Expected behavior I expect there to be two files added after the script runs:
getting_here_too
generated in the main loopgetting_here
generated in the do_things functionActual behavior
(note that the
getting_here
file is not generated.