Base solution for your next web application
Open Closed

Notify system downtime through Hangfire #1234


User avatar
0
sampath created

Hi, I have a requirement where need to send the emails to all the registered users of the app (including tenants users) to notify about the system downtime due to data migration or something like that.Can I use Abp's Notification System or Hangfire or something like that ? If so please let me know how to do that ? Thanks.


4 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    You can not do it with background jobs (hangfire) normally, because your application will be down in a data upgrade. Surely, you can trigger it manually, wait until all emails are sent and then begin upgrade.

  • User Avatar
    0
    sampath created

    Hi, Yes,that is fine.I just need to inform all the registered users about the system down time before it happens (before 1 hour ).Can you give me a small direction how to start this ? Can I set this to host admin to do this job or any dash board kind of thing or else ? Thanks.

  • User Avatar
    0
    hikalkan created
    Support Team

    If you want to send this email to all users, then don't use notifications. Just use background jobs. Create a background job and enqueue a job. In this job, you get list of all users (if it's single db, just disable IMayHaveTenant filter to get all users from user repository) and send an email in a loop. For more info on background jobs, please see: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Background-Jobs-And-Workers">http://www.aspnetboilerplate.com/Pages/ ... nd-Workers</a>

  • User Avatar
    0
    sampath created

    Hi, Awesome ! , Thanks a lot.I'll give a try and will let you know :)