AWS Thinkbox Discussion Forums

How to set ExtraInfo values for Tasks

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?

It is possible! Use RepositoryUtils.UpdateTaskProperties():
docs.thinkboxsoftware.com/produc … 2f6eaaae9a

There’s also a feature blog about extra info here:
deadline.thinkboxsoftware.com/fe … extra-info

1 Like

Great, works fine.

Thanks,
Michael

Welcome sir.

i know this is an old thread but i was trying to read up on extra info fields and the blog post link is not working, and most of the older blog post are missing unfortunately. are they all gone? is there a backup of these posts?

Privacy | Site terms | Cookie preferences