Continue process after stopping the server


I have a program with many steps inside.

One intermediate step is to initialize a dash app and run the server.

Is there a way to stop running the server and continue to process the subsequent steps, i.e. not exit the process, but continue ?

Thank you for your help.