Skip to content

Commit

Permalink
fix(api): update manual job status when playing it
Browse files Browse the repository at this point in the history
  • Loading branch information
1ace authored and nejch committed Feb 10, 2024
1 parent c631eeb commit 9440a32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gitlab/v4/objects/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def play(self, **kwargs: Any) -> None:
GitlabJobPlayError: If the job could not be triggered
"""
path = f"{self.manager.path}/{self.encoded_id}/play"
self.manager.gitlab.http_post(path, **kwargs)
result = self.manager.gitlab.http_post(path, **kwargs)
if TYPE_CHECKING:
assert isinstance(result, dict)
self._update_attrs(result)

@cli.register_custom_action("ProjectJob")
@exc.on_http_error(exc.GitlabJobEraseError)
Expand Down

0 comments on commit 9440a32

Please sign in to comment.