Notifications Override

Hello,

I am trying to set up popup notifications for users on linux machines and it seems to work fine when we enable Send Popup Notifications in Monitor Options.
My question is whether we can override this so that even if users have set this to False they would still get them. I tried by creating a NotificationsOverride event on job submission, where I set

job.JobOverrideNotificationMethod = True
job.JobPopupNotification = True

but doesn’t seem to make any difference. If the user’s setting is set to False no notification pops up.
What am I missing ?

Thanks

Hello

Thanks for reaching out. It may not be possible but we can troubleshoot it first. Launcher must always be running as an application for popup notifications.

If you are setting this up as a part of job submission the it should make it up to Job Submission params. Please share a screenshot of job> right menu> modify job properties> submission params> Job info parameters> share the screenshot from here, be sure to remove any internal paths or
information. I mostly interested to see if below is setup:

OverrideNotificationMethod=True
PopupNotification=True

What is the value of below setting is set in Deadline Monitor> Tools> Options> User Settings>

image

I was using an event (OnJobSubmitted) to try to set these. The above mentioned settings don’t show in Job Info Parameters at all but I can see the event successfully ran in Job Reports log.
Not sure if it would make any difference trying to set them via the job submission plugin but I could try.

The Send Popup Notioficationvalue in User Settings is False but this is what I am trying to override in the first place.

Hello

It is weird, can I take look at your event plugin? please attach it here. Basically all I want to check is that you are saving the job at the end of the function. Like below:

    def OnJobSubmitted(self, job):
        job.JobOverrideNotificationMethod = True
        job.JobPopupNotification = True
        
        RepositoryUtils.SaveJob(job)

I tested this ^ and it works for me:
image

1 Like

Hello again,

apparently the issue was me not saving the job. That line got omitted somehow between copy pasting the code…
Everything seems to work fine now. Thank you very much for your help :slight_smile: