-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "passive" mode with
--passive
flag.
Every listmonk instance scans the DB periodically to look for running campaigns to process. This made running multiple instances of listmonk impractical as they would all pick up the same running campaign and process them, resulting in duplicate e-mails. This commit adds a `--passive` flag to the binary that runs listmonk in a "passive" mode where campaign processing is disabled. This allows multiple instances of listmonk to be run to handle different kinds of requests if there is a requirement (scale/traffic?). It is important to note that there should only be one non-passive instance running at any given time. If distributed campaign processing is ever considered, this will change.
- Loading branch information
Showing
3 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters