Skip to content

fix: increase time allowed for trial components to index #2090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/integ/sagemaker/lineage/test_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ def test_list(artifact_objs, sagemaker_session):


def test_downstream_trials(trial_associated_artifact, trial_obj, sagemaker_session):
# wait for TC to index
time.sleep(3)

trials = trial_associated_artifact.downstream_trials(sagemaker_session=sagemaker_session)
# allow trial components to index, 30 seconds max
for i in range(3):
time.sleep(10)
trials = trial_associated_artifact.downstream_trials(sagemaker_session=sagemaker_session)
if len(trials) > 0:
break

assert len(trials) == 1
assert trial_obj.trial_name in trials
Expand Down