From 3216ca136d48e0887668fd89c9d4598490a75b89 Mon Sep 17 00:00:00 2001
From: "algodeveloper1@free.fr" <algodeveloper1@free.fr>
Date: Thu, 10 Feb 2022 17:50:56 +0000
Subject: [PATCH] BIOMASS-2308 restore the JobID variable

---
 wps_notebook/Resample.ipynb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/wps_notebook/Resample.ipynb b/wps_notebook/Resample.ipynb
index 5c73bd5..c93e0a3 100644
--- a/wps_notebook/Resample.ipynb
+++ b/wps_notebook/Resample.ipynb
@@ -493,7 +493,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 29,
+   "execution_count": 30,
    "metadata": {},
    "outputs": [
     {
@@ -501,15 +501,15 @@
      "output_type": "stream",
      "text": [
       "---DeleteJob---\n",
-      "{\"timestamp\":1644514892909,\"status\":500,\"error\":\"Internal Server Error\",\"exception\":\"java.lang.NullPointerException\",\"message\":\"No message available\",\"path\":\"/wps/dismiss\"}\n"
+      "{\"jobID\":\"62054cac310b5900011f25f0\",\"status\":\"DISMISSED\",\"expirationDate\":null,\"estimatedCompletion\":null,\"nextPoll\":null,\"percentCompleted\":null,\"setJobID\":true,\"setStatus\":true,\"setExpirationDate\":false,\"setEstimatedCompletion\":false,\"setNextPoll\":false,\"setPercentCompleted\":false}\n"
      ]
     }
    ],
    "source": [
     "print(\"---DeleteJob---\")\n",
     "url = copa_backend_url + 'wps/dismiss?userId=' + user_id\n",
-    "#body = { \"jobID\": jobID[0]}\n",
-    "body = { \"jobID\": '620546d4310b5900011f25ec'}\n",
+    "body = { \"jobID\": jobID[0]}\n",
+    "#body = { \"jobID\": '62054cac310b5900011f25f0'}\n",
     "response = requests.post(url, headers = {'Authorization': 'Bearer '+oauth_token},  json = body)\n",
     "print(response.text)\n"
    ]
-- 
GitLab