{"ref":"content:sap-job-scheduling-service-set-job-run-status-with-the-rest-api-and-node-js","page":"/content/sap-job-scheduling-service-set-job-run-status-with-the-rest-api-and-node-js","json":"/content/sap-job-scheduling-service-set-job-run-status-with-the-rest-api-and-node-js.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"sap-job-scheduling-service-set-job-run-status-with-the-rest-api-and-node-js","title":"SAP Job Scheduling Service: Set Job Run Status with the REST API and Node.js","url":"https://community.sap.com/t5/technology-blog-posts-by-sap/sap-job-scheduling-service-set-job-run-status-with-the-rest-api-and-node-js/ba-p/14177207","content_type":"blog","published_on":"source:sap-community","explains":["capability:job-scheduling","artifact:btp-job-scheduling"],"summary":"Walks through recovering a stuck asynchronous job run in [SAP Job Scheduling service](artifact:btp-job-scheduling): when a triggered app fails to call back, the run stays at ACK_RECEIVED and eventually UNKNOWN, since the scheduler never assumes success or failure on its own. The fix is a Node.js script that reads a downloaded service key, gets an OAuth2 client-credentials token, and calls `PUT /scheduler/jobs/{jobId}/schedules/{scheduleId}/runs/{runId}` with a `success`/`message` body to set the run to FAILURE or SUCCESS by hand.","short":"Recovering stuck job runs in SAP Job Scheduling service via REST","author":"DenisDuev","published":"2025-08-11","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cloud-foundry-tag"}],"first_seen":"2026-10-18"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"fair","evidence":"published 14 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2025-08-11"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":1584,"unit":"views"},{"value":0,"unit":"comments"},{"value":1,"unit":"likes"}]},"signals":{"views":1584,"likes":1,"comments":0,"metrics_at":"2026-10-25"},"series":null,"edges":{"authors":[]}}