automatically restarting my springboot application every 24 hours at 00:00 GMT

Ggvb.3/26/2023
Hello, I have a web-based puzzle game that retrieves words from the database, every 24 hours. I made a function in springboot that will restart the run of the application, but when deployed with railway, it does not restart. Could I please get some assistance on how to ensure the springboot application restarts every 24 hours at 00:00 GMT. I am very new to SpringBoot and railway. Thank you in advance.
Ggvb.3/26/2023
d781fa1d-7aa1-405f-91b9-977dcd01e020
Bbrody3/26/2023
this seems more like an XY Question if I'm being honest
Ggvb.3/26/2023
Oh sorry, where do I ask this?
Bbrody3/26/2023
you're in the right place, it just seems like restarting your whole app is a botch job to reset something
Ggvb.3/26/2023
What would you advise?
Bbrody3/26/2023
well first, what does restarting your application at that time achieve?
Ggvb.3/26/2023
it pulls new words from our database
Ggvb.3/26/2023
otherwise the same words are used.
Bbrody3/26/2023
okay then just pull the new words without restarting
Ggvb.3/26/2023
But we need it to specifically pull at 00:00 GMT
Ggvb.3/26/2023
Hmm wait
Ggvb.3/26/2023
Is there SQL queries I can pull on that?
Ggvb.3/26/2023
Also we would need our automated solver to work every time at 00:00 GMT as well
Bbrody3/26/2023
yeah I'm not familiar with Java but I'm sure there is some in code Cron scheduler that can just call the already existing bit of code that pulls words on app start
Ggvb.3/26/2023
Hmm Okay!
Bbrody3/26/2023
I'm also sure there's a hand full of ways to do this, but an in code cron scheduler is the way I'd do it, don't know if best but maybe simplest