Skip to content
Discussion options

You must be logged in to vote

A bit of a hack, but you can add this at the bottom of your seed file:

DELETE FROM hdb_catalog.event_log WHERE created_at = current_timestamp;

Note you probably should constraint if further, eg by the name of the event triggers you expect to trigger. Please also test this in a dev environment before committing to using it in prod, there is a risk you could lose unprocessed events if my logic is unsound.

Why this works: hasura events work by creating postgres triggers that will queue up events in hdb_catalog.event_log for later processing.
We can delete theses entries before they have a chance to be processed by removing them in the same transaction we queued the up.

To identify these even…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BenoitRanque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants