Developer forum

Forum » Integration » Trigger JobFinished notification (ScheduledTaskAddin)

Trigger JobFinished notification (ScheduledTaskAddin)

Lars Larsen
Lars Larsen
Reply

Hi

I have made a custom ScheduledTaskAddin and I have a notification subscriber listening on the JobFinished notification. But this notification is not fired when my custom ScheduledTaskAddin has runned (it runs an import activity). Therefore the code in the JobFinished notification does not run. How can I fix that?


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Hi Lars,

You need to trigger the notification explicitly when the job is done...

NotificationManager.Notify(Integration.JobFinished, new Integration.JobFinishedIntegrationArgs(!success, logFileFullPath, job));
Votes for this answer: 1

 

You must be logged in to post in the forum