Commit graph

586 commits

Author SHA1 Message Date
Andre Medeiros
eb853710c4 Add profiling to scheduler 2022-05-27 13:27:28 -04:00
Andre Medeiros
dc9f42de8b be less noisy again 2022-05-27 09:51:59 -04:00
Andre Medeiros
80438dc1e2 fix median calculation by forcing a limit 2022-05-27 09:37:25 -04:00
Andre Medeiros
f0353399e8 Revert "Don't log post titles anymore"
This reverts commit e9a2f5b745.
2022-05-27 09:22:04 -04:00
Andre Medeiros
2111cb4be6 Revert "Make median score log debug level"
This reverts commit c3f7982882.
2022-05-27 09:21:56 -04:00
Andre Medeiros
c3f7982882 Make median score log debug level 2022-05-26 18:58:53 -04:00
Andre Medeiros
e9a2f5b745 Don't log post titles anymore 2022-05-26 18:58:12 -04:00
Andre Medeiros
d8bd6dfb37 show all to avoid hidden posts 2022-05-26 18:56:53 -04:00
Andre Medeiros
be343deab8 try logging posts differently 2022-05-26 18:44:07 -04:00
Andre Medeiros
e7faf73834 sort scores 2022-05-26 18:17:49 -04:00
dependabot[bot]
72450d54d7 Bump github.com/jackc/pgconn from 1.12.0 to 1.12.1
Bumps [github.com/jackc/pgconn](https://github.com/jackc/pgconn) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/jackc/pgconn/releases)
- [Changelog](https://github.com/jackc/pgconn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgconn/compare/v1.12.0...v1.12.1)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgconn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-26 21:54:29 +00:00
André Medeiros
8dc4ac350e omg fix watchers and subreddit things (#79)
* omg fix watchers and subreddit things

* don't send thumbnails for posts that are over 18
2022-05-26 17:54:02 -04:00
dependabot[bot]
7e9cf6e78a Bump go.uber.org/zap from 1.13.0 to 1.21.0 (#77)
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.13.0 to 1.21.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.13.0...v1.21.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-26 17:53:28 -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
47a0aa47dd add logging for things 2022-05-25 19:55:51 -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
1db3f6cbbb change database plan 2022-05-25 19:31:51 -04:00
Andre Medeiros
ca8fc6e991 tighten authenticated client params 2022-05-25 19:28:41 -04:00
Andre Medeiros
dc54bb76df try referencing client instead of embedding 2022-05-25 19:22:05 -04:00
André Medeiros
f018af7c73 Log post score 2022-05-25 16:05:49 -04:00
André Medeiros
3a5e504ba7 Update trending.go 2022-05-25 15:57:55 -04:00
Christian Selig
b763e6f875 Merge pull request #78 from christianselig/bugs/autorenew_off
Fix issue with not allow non-autorenewing subs
2022-05-24 22:00:08 -03:00
Christian Selig
ea9af069e8 Fix issue with not allow non-autorenewing subs 2022-05-24 21:58:28 -03: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
bbb3001544 tweak on receipt check 2022-05-23 19:05:31 -04:00
Andre Medeiros
079cc9a5c5 better variable name 2022-05-23 18:54:38 -04:00
Andre Medeiros
34e050daad tweak scheduler 2022-05-23 18:51:30 -04:00
Andre Medeiros
b1ed5fb71a Revert "optimize scheduler to reduce memory allocations"
This reverts commit f41dd925e4.
2022-05-23 18:46:39 -04:00
Andre Medeiros
f41dd925e4 optimize scheduler to reduce memory allocations 2022-05-23 18:43:53 -04:00
Andre Medeiros
b6c7c58062 revert client change 2022-05-23 17:41:19 -04:00
Andre Medeiros
17c503e0e3 don't retry on 403 2022-05-23 17:37:51 -04:00
Andre Medeiros
5fa9bfaa45 distinguish between 401 and 403 2022-05-23 17:26:40 -04:00
Andre Medeiros
be926f9118 calculate next check properly 2022-05-23 16:50:51 -04:00
Andre Medeiros
bb3b4807ff add a bit more messaging to errors in account upsert 2022-05-23 16:27:38 -04:00
Andre Medeiros
d6f5671efb tune autoscaling for notifications worker 2022-05-23 15:53:01 -04:00
Andre Medeiros
1fca733818 typos-- 2022-05-23 15:15:46 -04:00
Andre Medeiros
bcce102388 more logging things 2022-05-23 14:29:15 -04:00
Andre Medeiros
ff9e32ef20 tweak logger verbosity 2022-05-23 14:20:45 -04:00
André Medeiros
b1f266bf91 migrate out of logrus (#76) 2022-05-23 14:17:25 -04:00
Andre Medeiros
ccba530255 fix tests 2022-05-23 11:51:22 -04:00
Andre Medeiros
ef3f3ff18b fix error handling on postgres repositories 2022-05-23 11:49:48 -04:00
Andre Medeiros
c35ec006f1 simplify reddit error handling 2022-05-23 11:33:15 -04:00
Andre Medeiros
6f8f93f3ab reduce account updates by half 2022-05-22 19:57:29 -04:00
Andre Medeiros
b92e3fc374 tweak scheduler 2022-05-22 19:35:03 -04:00
Andre Medeiros
175bf77efe add timestamp index to accounts 2022-05-21 17:37:34 -04:00
Andre Medeiros
fc94bef379 optimize queries 2022-05-21 17:15:24 -04:00
Andre Medeiros
65f8402d88 more tweaks to infra 2022-05-21 13:21:24 -04:00
Andre Medeiros
08d0bc3b70 more infra tweaks 2022-05-21 13:19:27 -04:00