I try to set some process names on individual tasks.
Therefor I created a Job script (will become an event, but makes it easier to test), which get’s all tasks from the job, and sets a value/name per task, based on it’s id.
# Dosn't work:
Task.TaskProperties.SetTaskExtraInfoKeyValue('ExtraInfo1', 'Process %s' % Task.TaskId)
# Dosn't work:
Task.TaskProperties.SetTaskExtraInfoKeyValue('TaskExtraInfo1', 'Process %s' % Task.TaskId)
# Dosn't work:
Task.TaskProperties.SetTaskExtraInfoKeyValue('MyCustomTaskName', 'Process %s' % Task.TaskId)
I get the tasks via:
RepositoryUtils.GetJobTasks(job, True)
Do I have to save it, if yes how?