Need to restart docker container after code modifications

Sometimes when we change some code in a python script and then we execute it from crontab, the old code is executed. We need to restart some of the Docker containers to be able to run the new code.

This specially happens when we add a new python script. Quantrocket just sees the file after the containers restart. Also when the code modification is in one file that is imported from another.

How can we avoid this?

Quantrocket 1.9

Can you provide specific steps to reproduce the problem with a toy example? Running a quick test, changes to scripts are picked up fine for me. But I don't know exactly what you're doing.