I used the deadline slack notification plugin as a base and to my surprise it even worked.
Right now I am just sending messages formatted in deadline as {message:message} as JSON to a post hook.
I would now want to step it up and send the message dict as json, before it has been formatted.
Arguments:
key (str): The message key
job (Deadline.Jobs.Job): Job that got an error
task (Deadline.Jobs.Task): Task that raised the error
report (Deadline.Reports.Report): Error report
message = self._get_message(key)
if message:
self._post(message.format(job=job,
task=task,
report=report))
I take it I can simply not call the message.format() function and then send the unformatted message? Is the message a “dict”. sorry I have 0 knowledge of python, mostly coding JS.
where can I find the documentation for all the properties in taskreport and job? I would love to know and only send the helpful ones.
PS
FYI I am calling a webhook in n8n a pretty cool software for automation. http://n8n.io/
Above I can see that job contains job.JobName JobUserName… etc, where is a complete list so I can browse those and see which wants I want to send to my webhook?
Where is a doc where I can see all of the properties a Deadline.Jobs.Job contains?