Consider the following pipiline
stages:
sleep:
cmd: python mah_sleep.py
deps:
- mah_sleep.py
And the python code as follows:
import time
seconds = 5
print(f"sleeping for {seconds}s")
time.sleep(seconds)
Now during the execution I realise that the correct amount to sleep is actually 6 seconds. I modify the code during the execution. What happens is DVC saves hash of the new file (with 6s sleep) and dvc repro
thinks that it has nothing to do. How can I avoid this situaltion? Is there a way to tell dvc to hash inputs before execution?