When waiting for a pipeline to run and finish, it's better to give
early feedback, and then sleep and wait, than the other wait around.
Specially for the first iteration, it's frustrating to see nothing
while the script is sleeping.
Signed-off-by: Cleber Rosa <[email protected]>
Message-Id: <
20200904164258[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
status = get_pipeline_status(project_id, commit_sha)
if status['status'] == 'running':
- time.sleep(interval)
print('running...')
+ time.sleep(interval)
continue
if status['status'] == 'success':