Run a task once time when running project #214
Unanswered
Athirst1998
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a code similar to this, and I want the function "do_something" to be executed when I run the project. Its job is to prepare the database, etc.
I don't know how do it. I would it if you could guide me. I have read the rocketry documentation, but I couldn't find what I need.
The idea that came to my mind is to set the value of a variable to false and then check in my code if the variable's value is false, perform this action, and afterwards set the value of that variable to true.
Beta Was this translation helpful? Give feedback.
All reactions