mirror of https://github.com/zulip/zulip.git
fixup supervisor oops related to postmaster config
(imported from commit 8b5c39f0d13abb5e1def9f88a2ab82cfa67b42f6)
This commit is contained in:
parent
1546d06344
commit
6d38285a2e
|
@ -197,7 +197,7 @@ stopsignal=TERM ; signal used to kill process (default TERM)
|
|||
stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||
user=zulip ; setuid to this UNIX account to run the program
|
||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||
stdout_logfile=/var/log/zulip/events-digest_emails.log ; stdout log path, NONE for none; default AUTO
|
||||
stdout_logfile=/var/log/zulip/events-deliver_enqueued_emails.log ; stdout log path, NONE for none; default AUTO
|
||||
directory=/home/zulip/deployments/current/
|
||||
|
||||
|
||||
|
|
|
@ -333,14 +333,14 @@ define service {
|
|||
define service {
|
||||
use generic-service
|
||||
host staging
|
||||
service_description Check email deliverer process (Currently only used on Zulip Enterprise)
|
||||
service_description Check email deliverer process which is only used on Zulip Enterprise
|
||||
check_command check_email_deliverer_process
|
||||
contact_groups admins
|
||||
}
|
||||
|
||||
define service {
|
||||
use generic-service
|
||||
service_description Check email deliverer backlog (Currently only used on Zulip Enterprise)
|
||||
service_description Check email deliverer backlog which is only used on Zulip Enterprise
|
||||
check_command check_email_deliverer_backlog
|
||||
hostgroup_name frontends
|
||||
contact_groups admins
|
||||
|
|
|
@ -69,7 +69,7 @@ Run this command under supervisor. We use Mandrill for our deploy; this is for Z
|
|||
Usage: python manage.py deliver_email
|
||||
"""
|
||||
|
||||
def handle(self):
|
||||
def handle(self, *args, **options):
|
||||
# TODO: this only acquires a lock on the system, not on the DB:
|
||||
# be careful not to run this on multiple systems.
|
||||
with lockfile("/tmp/zulip_email_deliver.lockfile"):
|
||||
|
|
|
@ -23,7 +23,7 @@ Please note that this is only currently useful for Zulip Enterprise deploys.
|
|||
Usage: python manage.py print_email_delivery_backlog
|
||||
"""
|
||||
|
||||
def handle(self):
|
||||
def handle(self, *args, **options):
|
||||
print len(ScheduledJob.objects.filter(type=ScheduledJob.EMAIL,
|
||||
scheduled_timestamp__lte=datetime.utcnow()-timedelta(minutes=1)))
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue