From 6043609f90cfd3c982a9891af8794cdc15075f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 21 Feb 2022 19:47:44 +0100 Subject: [PATCH] Little debug script for creating simple test job --- debug-job-echo.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 debug-job-echo.sh diff --git a/debug-job-echo.sh b/debug-job-echo.sh new file mode 100755 index 00000000..b5473560 --- /dev/null +++ b/debug-job-echo.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +curl -X 'POST' \ + 'http://localhost:8080/api/jobs' \ + -H 'accept: application/json' \ + -H 'Content-Type: application/json' \ + -d '{ + "metadata": { + "user.name": "Sybren Stüvel" + }, + "name": "Talk & Sleep", + "priority": 50, + "settings": { + "sleep_duration_seconds": 3, + "message": "{blender}" + }, + "type": "echo-sleep-test" +}'