Skip to content

Commit

Permalink
Deprecated Threads endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
rclapp authored and MariusWirtz committed Nov 29, 2023
1 parent 06a7c27 commit c780281
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TM1py/Services/MonitoringService.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get_threads(self, **kwargs) -> List:
response = self._rest.GET(url, **kwargs)
return response.json()['value']

@deprecated_in_version(version="12.0.0")
def get_active_threads(self, **kwargs):
"""Return a list of non-idle threads from the TM1 Server
Expand All @@ -38,6 +39,7 @@ def get_active_threads(self, **kwargs):
response = self._rest.GET(url, **kwargs)
return response.json()['value']

@deprecated_in_version(version="12.0.0")
def cancel_thread(self, thread_id: int, **kwargs) -> Response:
""" Kill a running thread
Expand All @@ -48,6 +50,7 @@ def cancel_thread(self, thread_id: int, **kwargs) -> Response:
response = self._rest.POST(url, **kwargs)
return response

@deprecated_in_version(version="12.0.0")
def cancel_all_running_threads(self, **kwargs) -> list:
running_threads = self.get_threads(**kwargs)
canceled_threads = list()
Expand Down

0 comments on commit c780281

Please sign in to comment.