Email notification upon Nuke job submission

Any chance you can breadcrumb me some places to start to config this as a default behavior for Nuke jobs?

I haven’t used the built-in email notifications in a very long time, but from what I can see it’s a one-size-fits-all approach regardless of plugin, but which can be overridden on a per-job basis.

However, it seems to center around jobs being completed/failed/interrupted/etc, and not really when they are submitted.

I would suggest an event-plugin for this. You can use one of the shipped plugins as a guide, but this will very likely be completely custom for you.

That said, if you’re somewhat comfortable with Python it’s a reasonably straight-forward thing to make. If this sounds like an option for you, let us know where specifically you’d need some more help.

Cheers

1 Like

Thanks Daniel.

I have gone the path of a custom events plugin.

At the moment I can trigger a write to the log upon nuke job submission.

I just need to extend that to sending an email.

Is there a way to call/hook into the email functionality that is already built-in? It will mean I wont have multiple email configurations within the system and it will all be centrally managed.

Otherwise I will just hack some horrible looking email sending function… :slight_smile:

I haven’t been able to find a way to tap into the built-in email methods, nor a decent way to find the configuration you’ve supplied to Monitor > Configure Repository Settings.

However, connecting to the underlying MongoDB you can find the information here:

mongodb://<db>:<port>/deadline10db.DeadlineSettings/{_id:"deadline_network_settings"}

This is definitely not how Thinbox wants you to access this data though, and I’m not really sure if I’d recommend going down that path.

In the past I’ve found it convenient to use Zapier for sending emails and other automation tasks where I don’t want to deal with the authentication and vendor management myself. This starts costing money reasonably quickly though – you only really get a taste of the good stuff before you outgrow the free tier.

Oh hang on, you can send emails via deadlinecommand[.exe] -SendEmail <to> <subject> <message> [<cc> <attachment>]

Maybe that will work for you?

For an example of how to invoke system commands like that, check out the script <DeadlineRepository>/scripts/General/SendPopUpMessage.py → specifically ClientUtils.ExecuteCommand(args)

Thanks for the help Daniel, I am doing a subprocess call to deadlinecommandbg for now as that’s the track I started but to be tidy/cross platform it up would def be worth doing it natively via this python calls as per your above.

1 Like