def wait_for_experiment_workload_progress(experiment_id: int, max_ticks: int=conf.MAX_TRIAL_BUILD_SECS) -> None:
    for _ in range(conf.MAX_TRIAL_BUILD_SECS):
        trials = experiment_trials(experiment_id)
        if (len(trials) > 0):
            only_trial = trials[0]
            if (len(only_trial['steps']) > 1):
                return
        time.sleep(1)
    pytest.fail(f'Trial cannot finish first workload within {max_ticks} seconds.')
def wait_for_experiment_workload_progress(experiment_id: int, max_ticks: int=conf.MAX_TRIAL_BUILD_SECS) -> None:
    for _ in range(conf.MAX_TRIAL_BUILD_SECS):
        trials = experiment_trials(experiment_id)
        if (len(trials) > 0):
            only_trial = trials[0]
            if (len(only_trial['steps']) > 1):
                return
        time.sleep(1)
    pytest.fail(f'Trial cannot finish first workload within {max_ticks} seconds.')