Sidekiq restart required after smtp_enable changed from true to false
Issue already resolved. Here is as input for possible improvements.
I had temporarily disable email notifications to users during a migration. Unfortunately during the migration emails were still sent out (e.g. "Access to the xyz group was granted").
It turns out that:
-
If smtp_enable parameter is changed FROM FALSE TO TRUE and the reconfigure executed, the sidekiq component is restarted by the reconfigure procedure. The parameter change takes effect and the emails start flowing out.
-
If the same parameter is changed FROM TRUE TO FALSE and the reconfigure executed, the sidekiq component IS NOT restarted by the reconfigure procedure. Emails keeps flowing out! Sidekiq needs a manual restart for the parameter change to take effect, otherwise the emails keep going out to the users.
The change of configuration should take effect in both directions. It might something left out or done intentionally?