Commit graph

386 commits

Author SHA1 Message Date
Andre Medeiros
71884ccb80 multiply procfile some more 2021-07-13 20:34:04 -04:00
Andre Medeiros
8a777d2ee6 timeout reddit and increase batches 2021-07-13 20:16:38 -04:00
Andre Medeiros
55c45592ac tweak params 2021-07-13 20:09:44 -04:00
Andre Medeiros
47ee2a6e52 keep a number of idle connections around 2021-07-13 19:54:53 -04:00
Andre Medeiros
b98f8345a5 don't prefetch as much 2021-07-13 19:48:23 -04:00
Andre Medeiros
2a98be36ae tweak more 2021-07-13 19:45:03 -04:00
Andre Medeiros
07961c1199 tweak prefetch 2021-07-13 19:41:29 -04:00
Andre Medeiros
cc1d932781 tweak default transport and try using message unread 2021-07-13 19:33:32 -04:00
Andre Medeiros
9d0ff332c6 set max connections on pool 2021-07-13 15:45:00 -04:00
Andre Medeiros
bb4b6f0e83 add heroku metrics back 2021-07-13 15:35:46 -04:00
Andre Medeiros
fdfa447435 remove retry logic with token 2021-07-13 15:21:14 -04:00
Andre Medeiros
0262133ce8 update queue delay in a better spot 2021-07-13 15:08:39 -04:00
Andre Medeiros
d9f64765f0 one more little fix 2021-07-13 14:47:50 -04:00
Andre Medeiros
2b0078c8f2 I'm an idiot 2021-07-13 14:40:56 -04:00
Andre Medeiros
6d0ee9c0c9 don't print an array of bytes 2021-07-13 14:24:56 -04:00
Andre Medeiros
c2e3b81830 Add some debugging 2021-07-13 14:22:41 -04:00
Andre Medeiros
d2909b8003 try refreshing token on mailbox error 2021-07-13 13:58:52 -04:00
André Medeiros
9a37a05bf0 Merge pull request #3 from christianselig/feature/cmd-reorg
Reorganize commands to keep things more consistent
2021-07-13 13:55:32 -04:00
Andre Medeiros
9fa0257d84 reorganize commands to keep things more consistent 2021-07-13 13:14:25 -04:00
Andre Medeiros
143ccfc05c try fetching device before account to reduce orphaned accounts 2021-07-13 10:58:56 -04:00
Andre Medeiros
b5438495ec change API to pgxpool 2021-07-13 10:17:20 -04:00
Andre Medeiros
49a89d3674 connect with SSL 2021-07-13 09:24:31 -04:00
Andre Medeiros
245c56eae0 refresh client 2021-07-12 17:10:10 -04:00
Andre Medeiros
3d41795636 update user agent 2021-07-12 16:27:59 -04:00
Andre Medeiros
e0c18b8f79 fix API refreshing tokens 2021-07-12 16:12:34 -04:00
Andre Medeiros
2304015aac only delete accounts that haven't updated expiry in over 2 hours 2021-07-12 15:59:27 -04:00
Andre Medeiros
06465ebf19 get post ID from context 2021-07-12 15:51:02 -04:00
Andre Medeiros
147f1e924c fixups 2021-07-12 15:37:03 -04:00
Andre Medeiros
56cbf6b4ce clean queues and stale accounts 2021-07-12 15:36:22 -04:00
Andre Medeiros
33b3af6584 fix account upsert 2021-07-12 15:09:40 -04:00
André Medeiros
d0cf4e74d0 Merge pull request #2 from christianselig/fix/notification-payload
Fix notification payloads
2021-07-12 15:02:47 -04:00
Andre Medeiros
bc5acffcbe token refresh failure is unprocessable and error is not ours 2021-07-12 14:47:22 -04:00
Andre Medeiros
7a89d5503c fix up API to include account ID and refresh token 2021-07-12 14:46:28 -04:00
Andre Medeiros
a431c4ff5b better error handling 2021-07-12 14:36:08 -04:00
Andre Medeiros
fad7191035 add most of the missing fields 2021-07-12 14:15:13 -04:00
Andre Medeiros
65f671c96c Fix notification payloads 2021-07-10 14:51:42 -04:00
Andre Medeiros
a3b9e1a0ac fix up redis so that we only parse the script once 2021-07-10 01:00:00 -04:00
Andre Medeiros
d563ad26f1 report statistics about account and device counts 2021-07-09 02:30:30 -04:00
Andre Medeiros
fd18ea551e make logs less chatty 2021-07-09 02:00:57 -04:00
Andre Medeiros
a93ff0e1af enqueue accounts in a more manageable fashion 2021-07-09 01:29:07 -04:00
Andre Medeiros
c4a0704883 enqueue directly from redis 2021-07-09 01:05:36 -04:00
Andre Medeiros
4a92b90df9 limit the amount of accounts we batch at any given time 2021-07-09 00:50:53 -04:00
Andre Medeiros
60e18c37f7 be more aggressive with scheduling 2021-07-09 00:27:50 -04:00
Andre Medeiros
961e41094d set the key only if it doesn't exist, otherwise it will never expire 2021-07-09 00:11:05 -04:00
Andre Medeiros
fb9741f7e0 make sure consumers always have plenty of work to do 2021-07-08 23:56:03 -04:00
Andre Medeiros
5cd3eeab09 fix delivery ack in jobs 2021-07-08 23:50:34 -04:00
Andre Medeiros
b9373832eb actually remember last message id so we don't duplicate notifications 2021-07-08 23:29:53 -04:00
Andre Medeiros
3ce858927b do batches in redis 2021-07-08 23:12:50 -04:00
Andre Medeiros
b7aea89cfc Measure schedule time 2021-07-08 22:15:28 -04:00
Andre Medeiros
d65bab7970 rejig sql 2021-07-08 22:09:14 -04:00