i would make timeout 2* the run duration, which is config.get('time', 360)