Skip to content

Commit 02acb53

Browse files
danabensjerrypeng7773
authored andcommitted
fix: retry context delete (aws#2721)
1 parent 09e9aaa commit 02acb53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integ/sagemaker/lineage/conftest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
)
4444
from sagemaker.lineage.lineage_trial_component import LineageTrialComponent
4545

46-
from tests.integ.sagemaker.lineage.helpers import name, names
46+
from tests.integ.sagemaker.lineage.helpers import name, names, retry
4747

4848
SLEEP_TIME_SECONDS = 1
4949
SLEEP_TIME_TWO_SECONDS = 2
@@ -400,7 +400,7 @@ def model_obj(sagemaker_session):
400400

401401
yield model
402402
time.sleep(SLEEP_TIME_SECONDS)
403-
model.delete(disassociate=True)
403+
retry(lambda: model.delete(disassociate=True), num_attempts=4)
404404

405405

406406
@pytest.fixture

0 commit comments

Comments
 (0)