mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-03-14 23:00:01 +01:00
build
This commit is contained in:
@@ -1139,7 +1139,7 @@ class PortainerApi:
|
|||||||
path = f"/endpoints/{self.endpoint_id}/forceupdateservice"
|
path = f"/endpoints/{self.endpoint_id}/forceupdateservice"
|
||||||
params={"serviceID": service_id, "pullImage": pool}
|
params={"serviceID": service_id, "pullImage": pool}
|
||||||
try:
|
try:
|
||||||
resp = self._api_put(path, json=params, timeout=20)
|
resp = self._api_put(path, json=params, timeout=120)
|
||||||
# print(resp)
|
# print(resp)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print(f"Error restarting service: {e}")
|
print(f"Error restarting service: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user