Can spaces run part of the function in advance

Can spaces run part of the function in advance, my code needs to run for 5,6 hours with bert to load a corpus before it is calculated based on the parameters of the web page

Hi @Enderfga, you can always run any code on the Space before it starts the web application.
Would you please share more details so we can help you? Thanks

You can run code before starting the app however if at startup the app is not ready within 30mins the space deployment will fail with a timeout.

1 Like