As far as I know, only
Tasks are associated with workers. As for finding the most recent one, you could probably sort them by
Deadline.Jobs.Task.TaskCompletedDateTime and do some magic guesswork after that.
Assuming you’re running your script in a context where you have access to the
Deadline.Jobs.Job object you’re interested in, you can get tasks like this:
job is your
Deadline.Jobs.Job instance, and
bool is whether or not to fetch new data rather than relying on local cache.
Once you have your task list, check out
Deadline.Jobs.Task.TaskSlaveName to grab the name of the worker that is/was working on the task.
Edit: reading your question again, it looks like you’re perhaps asking about the standalone API. If so, best to go ahead and ignore me