Commit graph

89 commits

Author SHA1 Message Date
Andre Medeiros
c6903d2b5f Revert "each consumer gets their reddit client"
This reverts commit 5714fbaad7.
2022-11-02 19:02:25 -04:00
Andre Medeiros
5714fbaad7 each consumer gets their reddit client 2022-11-02 18:51:16 -04:00
Andre Medeiros
710443830b easy on the histograms 2022-11-02 18:44:42 -04:00
Andre Medeiros
31de625d04 reduce prefetch 2022-11-02 18:29:52 -04:00
Andre Medeiros
c7a57121b6 change prefetch limit for notifications worker 2022-11-01 19:08:10 -04:00
Andre Medeiros
6cf7c54c86 upgrade rmq to v5 2022-11-01 19:02:25 -04:00
Andre Medeiros
873b9eb4db reduce logger allocations 2022-11-01 10:16:17 -04:00
Andre Medeiros
0e342803a1 don't go crazy on emitting stats 2022-10-31 18:04:01 -04:00
Andre Medeiros
16eeaae3ad poll twice as much for jobs 2022-10-31 15:22:42 -04:00
Andre Medeiros
11ccf632c3 only use the production apns server for notifications 2022-10-27 15:24:28 -04:00
Andre Medeiros
561312f131 change account not found message 2022-10-26 21:06:15 -04:00
Andre Medeiros
9a34ae3493 correct use of context 2022-10-26 20:42:48 -04:00
Andre Medeiros
a7f585be95 make measurements more accurate in notifications worker 2022-10-26 20:26:38 -04:00
Andre Medeiros
696f932baa Live activities 2022-10-19 09:37:41 -04:00
Andre Medeiros
3b08d6b8e4 fix stats name 2022-07-13 18:30:03 -04:00
Andre Medeiros
73da53ab70 measure runtime 2022-07-13 18:25:00 -04:00
Andre Medeiros
ceade8fe74 but for real this time 2022-07-13 17:29:40 -04:00
Andre Medeiros
3bdd348d50 reduce account updates 2022-07-13 17:28:46 -04:00
Andre Medeiros
da20e76d1b measure message age 2022-07-13 16:46:10 -04:00
Andre Medeiros
94d3941005 measure dequeue latency 2022-07-13 16:28:54 -04:00
Andre Medeiros
b26140f190 test: less prefetch more workers at the same time 2022-07-13 15:08:21 -04:00
Andre Medeiros
624cebf8ef higher prefetch 2022-07-13 14:54:27 -04:00
Andre Medeiros
071b0db010 higher reporting rate for queue delay stat 2022-07-13 13:55:45 -04:00
Andre Medeiros
5e573c831a should run tests 2022-07-13 13:47:52 -04:00
Andre Medeiros
131205a0cb better latency measurements 2022-07-13 13:42:21 -04:00
Andre Medeiros
f785d1a3a4 log message acknowledgement 2022-07-13 13:24:32 -04:00
André Medeiros
e8a8e5a5b3 chore: use reddit ids when enqueueing accounts (#87) 2022-07-13 11:50:13 -04:00
Andre Medeiros
6b7abe4eb0 fix nil pointer dereferrence on notification errors 2022-06-13 16:01:36 -04:00
Andre Medeiros
f7516a06b3 Revert "Mark account as seen"
This reverts commit ac72c979a6.
2022-05-27 15:02:39 -04:00
Andre Medeiros
ac72c979a6 Mark account as seen 2022-05-27 14:58:41 -04:00
Andre Medeiros
7da47176a2 Revert "token refresh mechanism"
This reverts commit df96aaa768.
2022-05-25 20:17:03 -04:00
Andre Medeiros
df96aaa768 token refresh mechanism 2022-05-25 20:12:54 -04:00
Andre Medeiros
5ede5d6987 more breahing room with tokens 2022-05-25 19:49:14 -04:00
Andre Medeiros
4f34e3927b add a bit of breathing room for token refresh 2022-05-25 19:44:29 -04:00
Andre Medeiros
571c6d60eb don't change account next notification check at, the scheduler does this for us 2022-05-23 19:47:48 -04:00
Andre Medeiros
be926f9118 calculate next check properly 2022-05-23 16:50:51 -04:00
André Medeiros
b1f266bf91 migrate out of logrus (#76) 2022-05-23 14:17:25 -04:00
Andre Medeiros
6f8f93f3ab reduce account updates by half 2022-05-22 19:57:29 -04:00
Andre Medeiros
413b46631c chill with the poll 2022-05-21 13:17:04 -04:00
Andre Medeiros
09d5457436 fix migrations 2022-05-21 13:08:30 -04:00
Andre Medeiros
cc6e862ba6 be less noisy about rate limits 2022-05-19 11:51:56 -04:00
André Medeiros
f9b9c595cf Better testing (#62)
* some tests

* more tests

* tidy up go.mod

* more tests

* add postgres

* beep

* again

* Set up schema

* fix device test
2022-05-07 12:37:21 -04:00
André Medeiros
a94aa11845 Merge pull request #66 from christianselig/chore/schema-changes
Changes to schema
2022-05-07 11:52:52 -04:00
Andre Medeiros
93052d2770 log account ID 2022-05-07 11:42:20 -04:00
André Medeiros
ead14c8bf0 Merge branch 'main' into chore/schema-changes 2022-05-01 14:07:34 -04:00
Andre Medeiros
e48460572a include subreddit fields too 2022-05-01 13:24:10 -04:00
Andre Medeiros
c2a77e7c66 add comment_id on username mention 2022-05-01 13:22:18 -04:00
Andre Medeiros
91456dc9b9 include comment_id for private messages 2022-05-01 13:20:36 -04:00
Andre Medeiros
b886dd3fab Fix post reply notifications 2022-05-01 13:18:16 -04:00
Andre Medeiros
a429ee9987 change remaining notification titles 2022-05-01 13:09:08 -04:00