feat: use river + newman, remove marionette + posthog #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Job Queue
Job
client to theent
client directly using ent templating, this allows theJob
client to be accessed via both the mutation e.g.m.Job
in an ent hook as well via the db client, e.g.h.DBClient.Job
(See the ent/templates for added templates that allow for this generation over using theentc.Dependency
riverboat
to the docker compose setup, migrations for the jobs db will be run as part of that container being brought up. By default this will run in dev-mode (controlled by riverboat config settings) and things like emails will not actually be sent, but saved to the container volume, you can see them in logs as well by runningriverboat
to the aio imagejob
db connection to the ready checks:rivertest
to confirm jobs are added during unit testsOther Changes
DB
directly to the client so you can write queries directly:This was chosen over using the Exec Query feature because that is not compatible with our double wrapped debug driver + encache driver, which is the default we are using right now.
pgx
driver, this is the preferred driver for riverqueue, and works with ent so the config I have setup (and now in the example config) usespgx
instead ofpostgres
as the driver config for entkafka
from thetask run-dev
, but leaving the compose and task commands for nowDBClient
instead.m
vs. sometimesm
and sometimesmutation
in the function signature (the interceptors all already consistently usedq
for the query.