semaphoreui-client 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- semaphoreui_client/__about__.py +1 -1
- semaphoreui_client/client.py +3 -3
- {semaphoreui_client-0.2.1.dist-info → semaphoreui_client-0.2.2.dist-info}/METADATA +1 -1
- semaphoreui_client-0.2.2.dist-info/RECORD +6 -0
- semaphoreui_client-0.2.1.dist-info/RECORD +0 -6
- {semaphoreui_client-0.2.1.dist-info → semaphoreui_client-0.2.2.dist-info}/WHEEL +0 -0
semaphoreui_client/__about__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.2.
|
1
|
+
__version__ = "0.2.2"
|
semaphoreui_client/client.py
CHANGED
@@ -760,7 +760,7 @@ class Template:
|
|
760
760
|
if limit is not None:
|
761
761
|
params["limit"] = limit
|
762
762
|
response = self.client.http.get(
|
763
|
-
f"{self.url}/
|
763
|
+
f"{self.url}/tasks/last",
|
764
764
|
params=params,
|
765
765
|
)
|
766
766
|
assert response.status_code == 200
|
@@ -847,8 +847,8 @@ class Task:
|
|
847
847
|
def url(self) -> str:
|
848
848
|
return f"{self.client.api_endpoint}/project/{self.project_id}/tasks/{self.id}"
|
849
849
|
|
850
|
-
def stop(self) -> None:
|
851
|
-
response = self.client.http.post(f"{self.url}/stop")
|
850
|
+
def stop(self, force: bool = False) -> None:
|
851
|
+
response = self.client.http.post(f"{self.url}/stop", json={"force": force})
|
852
852
|
assert response.status_code == 204
|
853
853
|
|
854
854
|
def delete(self) -> None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: semaphoreui-client
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: An api client for interacting with Semaphore UI
|
5
5
|
Project-URL: Documentation, https://github.com/rockstar/semaphoreui-client#readme
|
6
6
|
Project-URL: Issues, https://github.com/rockstar/semaphoreui-client/issues
|
@@ -0,0 +1,6 @@
|
|
1
|
+
semaphoreui_client/__about__.py,sha256=m6kyaNpwBcP1XYcqrelX2oS3PJuOnElOcRdBa9pEb8c,22
|
2
|
+
semaphoreui_client/__init__.py,sha256=VpeJavEFhs5gyfih7CoRTR4K4IGXGY3UYUkgAWj_f2U,56
|
3
|
+
semaphoreui_client/client.py,sha256=JfXACdEkZafS-sAC6UmtUba4cE9aOPjcQhLclsnDjDQ,26385
|
4
|
+
semaphoreui_client-0.2.2.dist-info/METADATA,sha256=9nWZhrYHS7nr6R0XlghTbGaiiia-nEo4FtZExhl4e8E,1632
|
5
|
+
semaphoreui_client-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
6
|
+
semaphoreui_client-0.2.2.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
semaphoreui_client/__about__.py,sha256=HfjVOrpTnmZ-xVFCYSVmX50EXaBQeJteUHG-PD6iQs8,22
|
2
|
-
semaphoreui_client/__init__.py,sha256=VpeJavEFhs5gyfih7CoRTR4K4IGXGY3UYUkgAWj_f2U,56
|
3
|
-
semaphoreui_client/client.py,sha256=CadFj7T5mUdnbu95dbBEIvZbSnjcb0sLCyyacZBpJBY,26387
|
4
|
-
semaphoreui_client-0.2.1.dist-info/METADATA,sha256=KDsZhPwleFstyPHgkrpvX0NOw6o3Vlei-4-Hlsyg-zo,1632
|
5
|
-
semaphoreui_client-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
6
|
-
semaphoreui_client-0.2.1.dist-info/RECORD,,
|
File without changes
|