-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG #221
Labels
bug
Something isn't working
Comments
Just fixed it by checking out the 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: