But the problem is task id is not static, it's dynamic for each run. So as per my understanding, the only way to get the task id of each run is by logging to Talend Management Console (TMC) and manually capturing task id.
Is there a way to fetch the status of running task(s) and/or plan(s) using public API on the basis of Task/Plan Name / WorkspaceId / EnvironmentId? Or if only task id is an option to get status then is there a way by which I can capture this dynamic task id somewhere and then pass it for further processing?