A
A
Artem2020-03-21 13:38:10
Python
Artem, 2020-03-21 13:38:10

How to make a python program resume after a stop?

There is an application written in python, the work of which will take several days or more. We need to make the system resume the application if it is completed or interrupted.

I have an idea for implementation:
At the start of the application, the start program will be launched, in it it is selected to start the execution of the main one from the beginning or continue execution from the backup checkpoint. When the main program is executed, the values ​​of variables, arrays and application backup files will be saved in the thread to a folder with the name of a specific backup version. A new backup folder will be created once in a while. When resuming, enter all the values ​​in the main one and replace the files, continue execution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2020-03-21
@artem_atlas

Google pickle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question