on 12-11-2020 2:44 PM
Hi all,
I have a node.js scheduled as a TASK in SAP Cloud Platform Job Scheduler service, and I need to call the Job Scheduler API to update the status of an asynchronous, long-running job, and based on the below documentation I need to call a REST service:
PUT /scheduler/jobs/ {jobId}/schedules/{scheduleId}/runs/{runId}
How can I receive, inside on the node.js application, the values of jobId, scheduleId and runId from the running task?
Regards,
Fabiano Rosa
Hello Fabiano,
sorry for the late reply.
In case of Task, Jobscheduler will set the status automatically. It is not possible to set the status from the node.js code.
So in this case it is different from what is done in case of async "Jobs"
Kind Regards,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saha,
You need to follow these main steps:
Regards,
Fabiano Rosa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carlos, thanks for checked it internally in SAP. I already moved from Task to Job, and it worked!
Also, I validated the Cedric’s approach from this blog post and worked as expect with XSUAA:
Regards,
Fabiano Rosa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabiano ,
We have a node.js scheduled as a job in SAP Cloud Platform Job Scheduler service, and we need to call the Job Scheduler API to update the status of an asynchronous, long-running job, and based on the below documentation -
PUT /scheduler/jobs/ {jobId}/schedules/{scheduleId}/runs/{runId} .
I find that you have already found the solution . Could you please share the same as to if the same can be done in node.js f
Thanks in advance .
Ritushree
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.