From 8418ca2a7818a23da9365f43e3f17b0299070d9b Mon Sep 17 00:00:00 2001 From: Eirini Koutsaniti Date: Tue, 9 Apr 2024 08:42:53 +0000 Subject: [PATCH] Fix response in task after timeout in one of the commands --- CHANGELOG.md | 5 +++-- src/common/cscs_api_common.py | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8c3e122..140b7651 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,13 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add the endpoints `/compute/nodes` and `/compute/nodes/{nodeName}` to retrieve information about nodes in the scheduling queue. - Added endpoints `POST /utilities/compress`, `POST /utilities/extract`, `POST /storage/xfer-internal/compress` and `POST /storage/xfer-internal/extract` for file compression and extraction. -- Added recurisive option to ls utilities command `&recursive=true` +- Added recurisive option to ls utilities command `&recursive=true`. ### Changed ### Fixed -- Fixed error on pipeline when releasing production version +- Fixed error on pipeline when releasing production version. +- Fixed response in task after timeout in one of the commands. ## [1.15.0] diff --git a/src/common/cscs_api_common.py b/src/common/cscs_api_common.py index d97b72a4..1532b7df 100644 --- a/src/common/cscs_api_common.py +++ b/src/common/cscs_api_common.py @@ -507,6 +507,8 @@ def exec_remote_command(headers, system_name, system_addr, action, file_transfer elif stderr_errno == 7: result = {"error": 7, "msg": "Failed to connect to staging area server"} + elif stderr_errno == 124: + result = {"error": 124, "msg": "Command has finished with timeout signal"} else: result = {"error": stderr_errno, "msg": stderr_errda or stdout_errda} elif len(stderr_errda) > 0: