From 131083064088dad807ddf2f798138c2ebd25657c Mon Sep 17 00:00:00 2001 From: Tommaso Comparin <3862206+tcompa@users.noreply.github.com> Date: Thu, 11 Jan 2024 08:40:34 +0100 Subject: [PATCH 1/3] Update expected status code of stop-job to 202 (close #584) --- fractal_client/cmd/_job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fractal_client/cmd/_job.py b/fractal_client/cmd/_job.py index d5cee9785..a8717785b 100644 --- a/fractal_client/cmd/_job.py +++ b/fractal_client/cmd/_job.py @@ -152,7 +152,7 @@ async def stop_job( res = await client.get( f"{settings.BASE_URL}/project/{project_id}/job/{job_id}/stop/" ) - check_response(res, expected_status_code=200) + check_response(res, expected_status_code=202) return PrintInterface( retcode=0, data="Correctly called the job-stopping endpoint" ) From dd394118c4a9386b4e56aa4e48760fd11b670830 Mon Sep 17 00:00:00 2001 From: Tommaso Comparin <3862206+tcompa@users.noreply.github.com> Date: Thu, 11 Jan 2024 08:41:16 +0100 Subject: [PATCH 2/3] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1874b7557..9eb17cbb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Always make new users verified, within `user register` command (\#580). * Expose verification-related features in `user edit` command (\#580). +* Update expected status code of stop-job to 202 (\#585). * Testing: * Adapt `job_factory` to new strict response-validation models in `fractal-server` (\#580). * Adapt `job_factory` by including the `timestamp_created` attribute (\#582). From 9aa93b516a2b040aa08daccc60dbce80ce4cb12c Mon Sep 17 00:00:00 2001 From: Tommaso Comparin <3862206+tcompa@users.noreply.github.com> Date: Thu, 11 Jan 2024 08:49:38 +0100 Subject: [PATCH 3/3] Update poetry lock/ --- poetry.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index b0f9b6178..7cf1fce26 100644 --- a/poetry.lock +++ b/poetry.lock @@ -610,7 +610,7 @@ typing = ["typing-extensions (>=4.8)"] [[package]] name = "fractal-server" -version = "1.4.2a0" +version = "1.4.2a3" description = "Server component of the Fractal analytics platform" optional = false python-versions = "^3.9" @@ -638,7 +638,7 @@ slurm = ["cloudpickle (>=2.2.1,<2.3.0)", "clusterfutures (>=0.5,<0.6)"] type = "git" url = "https://github.com/fractal-analytics-platform/fractal-server.git" reference = "main" -resolved_reference = "965b8af990c3997917bc8136f893506d697b8490" +resolved_reference = "d2b45ee5f42f002a57d8d1e1739e3fb7e83f1507" [[package]] name = "ghp-import"