It seems that the TaskId passed to this delegate is some sort of system-wide task id (probably the TaskId.SystemId mentioned in the documenation and not available in my implementation).
How can I get an ISchedulerTask from this task id?
Obviously Job.OpenTask(new TaskId(jobId, jobTaskId, 1)) fails as although the jobId is fine, the jobTaskId is invalid and it raises the exception:
Microsoft.Hpc.Scheduler.Properties.SchedulerException] {"Task Id is not valid"}
As a related question: Shouldn't the instance id (for parametric tasks) be included in this delegate?
MTIA
Andy