Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
When i am trying to run the job in TMC i am getting Error as -
It's not allowed to run this task in parallel
But there the job is not running as per TMC console.
Is there any way to check from backend or API is job running and if it is then how to kill it.
Thanks
-Sanjeevini
To kill a Talend job using the Talend Cloud Management Console Public API, you can use the
/executions/{id} endpoint. This endpoint takes the ID of the execution as a path parameter.
The request method for this endpoint is DELETE . To kill the execution, you would send a
DELETE request to this URL.
The response will be a JSON object with the following properties:
If the execution could not be killed, the response will contain an error message.
this job is scheduled to run every 5 mins and its status of the job from last 1 week is - It's not allowed to run this task in parallel. now which execution id has to be choosed to kill???
Hi
I think you have disabled the option 'Allow parallel run this task', if so, the task can't be run in parallel.
If the task is scheduled to run every 5 minutes or task is triggered by plans, and the previous execution isn't finished, you will get this error.
To get the execution status, you can call this API to get all of the https://api.us.cloud.talend.com/processing/executables/tasks/{provide your task id }/executions
In the task page, you can find the task ID.
About API details, please see
https://api.talend.com/apis/processing/2021-03/#operation_get-task-executions
Regards
Shong
Hi Shong,
I have checked the status of the task using APIs..
I am getting only two distinct status - execution_successful and deploy_failed. There is no "executing" status for which i can kill it.
Thanks
-Sanjeevini
Hi Sanjeevini, I have seen the same issues reported by others, they resolved it by copying the task and deleting the old one. This may not be a very long-term workaround. If you always have this issue, I suggest you to contact Talend Support, they will be able to hold a Zoom meeting with you and take a look at your config to see how best to resolve this.
Regards
Shong
Hi Shong,
Yes we also did same work around.
Thanks
-Sanjeevini