Solved by CyranoB in post #4 
              
              
                @pierreguillou To rephrase what @OlivierCR said: 
max_run : answer 1: the whole training job 
max_wait: none of your answers. This is the max time to get a spot instance allocated, plus the max_run