From ef6a27e8f2be95952fe678676725710760d6e102 Mon Sep 17 00:00:00 2001 From: Olivier Vignaud Date: Thu, 14 Aug 2025 14:53:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20task=5Fpause=20function.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- msa_sdk/msa_api.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/msa_sdk/msa_api.py b/msa_sdk/msa_api.py index 57ea89ba..a21184c1 100644 --- a/msa_sdk/msa_api.py +++ b/msa_sdk/msa_api.py @@ -130,6 +130,30 @@ def task_success(cls, comment, context, log_response=True): log_response)) sys.exit(0) + @classmethod + def task_pause(cls, comment, context, log_response=True): + """ + + Task pause and print. + + Parameters + ---------- + comment: String + Comment + context: Dictionary + Context + log_response: Bool + Write log to a file + + Returns + ------- + None + + """ + print(cls.process_content(constants.PAUSED, comment, context, + log_response)) + sys.exit(0) + @property def token(self): """