K.Kanakhin
6a801db1c2
missed-emails-sending: Move email sending to separate queue worker.
...
- Add new 'missedmessage_email_senders' queue for sending missed messages emails.
- Add the new worker to process 'missedmessage_email_senders' queue.
- Split aggregation missed messages and sending missed messages email
to separate queue workers.
- Adapt tests for sending missed emails to the new logic.
Fixes #2607
2017-03-07 20:08:40 -08:00
Tim Abbott
0afe832fc7
check-rabbitmq-consumers: Fix typing import issue.
2017-03-04 15:35:26 -08:00
Raghav Jajodia
a3a03bd6a5
mypy: Added Dict, List and Set imports.
...
Fixed mypy errors associated with the upgrade.
2017-03-04 14:33:44 -08:00
Tim Abbott
fe0c4cad85
check-rabbitmq-consumers: Go back to hardcoding for now.
...
This should fix the production test suite in Travis CI, so that we can
debug what's broken here offline.
2017-02-22 22:58:59 -08:00
Tim Abbott
b81add60fe
check-rabbitmq-consumers: Fix queue_workers call.
2017-02-22 00:48:43 -08:00
Tim Abbott
aa6567ee34
queue_workers: Fix confusing --queue_type argument name.
2017-02-22 00:23:26 -08:00
Tim Abbott
19896460f0
nagios: Fix RabbitMQ Nagios checks running Django as root.
...
This can cause problems by making the /var/log/zulip files owned by
root (not zulip) and thus not writable by the Zulip user.
2017-02-22 00:20:57 -08:00
Tim Abbott
333062f08e
nagios: Automate queue list in check-rabbitmq-consumers.
2017-02-19 16:19:55 -08:00
Tim Abbott
34046c1f55
check-rabbitmq-consumers: Add missing embed_links consumer.
2017-02-19 13:12:00 -08:00
Tim Abbott
213af24e47
check-rabbitmq-consumers: Reformat worker_queues list.
2017-02-19 13:12:00 -08:00
Tim Abbott
4e171ce787
lint: Clean up E126 PEP-8 rule.
2017-01-23 22:06:13 -08:00
Tommy Ip
e4091c6413
pep8: Fix E222 violations.
2016-11-30 21:49:02 +00:00
Tommy Ip
46b7d54b3e
pep8: Fix E701 violations.
2016-11-30 20:45:09 +00:00
Anders Kaseorg
573ec14955
Remove shebang line from non-scripts
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
Sahil Dua
058587da77
Remove extra new lines at the ends of Zulip authoried files.
...
Fixes #1627 .
[tweaked by tabbott to avoid patching third-party modules, for now]
2016-09-26 21:05:24 -07:00
Tim Abbott
e7c3a0c819
check-rabbitmq-consumers: Add missing tornado_return consumer.
...
I'd like to move this list to be automatically generated, but this
fixes the fact that it's missing for now.
2016-08-17 22:53:00 -07:00
Tim Abbott
88a123d5e0
Fix excessive CPU usage by rabbitmq-numconsumers Nagios checks.
...
The previous model for these Nagios checks was kinda crazy -- every
minute, we'd run a full `rabbitmctl list_consumers` for each of the
dozen+ consumers that we have, and then do the exact same parsing
logic for each to determine whether the target queue has a running
consumer to write out a state file.
Because `rabbitmctl list_consumers` takes a small amount of resources,
on systems where CPU is very limited (e.g. t2 style AWS instances),
this minor CPU wastage could be problematic.
Now we just do that `rabbitmqctl list_consumers` once per minute, and
output all the state files from a single command.
Further TODO items on this front include removing the hardcoded list
of queues.
2016-08-12 14:09:36 -07:00
Tim Abbott
0d39ed82d1
Annotate cron_file_helper.
2016-08-04 15:57:03 -07:00
Eklavya Sharma
51ea5c1602
scripts/: Make subprocess calls unicode-aware.
2016-07-26 12:06:41 -07:00
Eklavya Sharma
11732f9ab0
Make all scripts in scripts/ pass mypy check.
2016-07-24 00:17:21 +05:30
Eklavya Sharma
149938d468
Change shebangs from python2.7 to python.
2016-05-29 05:03:08 -07:00
Tim Abbott
cb81a59e38
Move write-rabbitmq-consumers-state-file to scripts/nagios/.
2016-05-07 19:37:06 -07:00
Tim Abbott
2761c012e5
Move rabbitmq consumer checks from bots/ to scripts/nagios/.
2016-05-07 19:37:06 -07:00
Tim Abbott
be6566dc5c
nagios: Move cron_file_helper from bots/ to scripts/lib.
...
This ensures the tool is available in Zulip production deployments.
2016-05-07 19:37:06 -07:00