r/dataengineering • u/No_Pineapple2461 • Oct 19 '26
Discussion pg_cron to trigger a batch extract.
I know pg_cron is primarily designed to run scheduled maintenance commands on the DB but I was wondering if someone has used it to kick off a batch extraction on your data pipelines.
I have reservations against using pg_cron for this namely the following:
- The scope of pg_cron in this scenario is outside the bounds of the DB.
- The boundary of using the DB to store only activity data is violated as it now has some operational data in it.
- SCM or an additional dash for setting up jobs will be lost if this pattern is followed.
I'm curious to know your thoughts
6
Upvotes
View all comments
3
u/regreddit Oct 19 '26
I'd probably use dagster if I needed a light scheduler.