Skip to content

Commit

Permalink
fix: add WaiterConfig to ssm command waiter (#152)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Moore <122481442+moorec-aws@users.noreply.github.com>
  • Loading branch information
moorec-aws authored Sep 16, 2024
1 parent 4297233 commit 65b93ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/deadline_test_fixtures/deadline/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def send_command(self, command: str) -> CommandResult:
ssm_waiter.wait(
InstanceId=self.instance_id,
CommandId=command_id,
WaiterConfig={"Delay": 5, "MaxAttempts": 30},
)
except botocore.exceptions.WaiterError: # pragma: no cover
# Swallow exception, we're going to check the result anyway
Expand Down
2 changes: 1 addition & 1 deletion src/deadline_test_fixtures/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def install_command_for_windows(self) -> str:
)

if self.upgrade_pip:
cmds.append("pip install --upgrade pip")
cmds.append("python -m pip install --upgrade pip")

cmds.append(
" ".join(
Expand Down

0 comments on commit 65b93ea

Please sign in to comment.