hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.17k stars 2.76k forks source link

[Feature Request] Add a way to run a job every X seconds #5606

Open rapacity opened 4 years ago

rapacity commented 4 years ago

It would be useful to be able to schedule jobs that execute every X seconds. Cron currently limits jobs to minute-level resolution.

SkinyMonkey commented 4 years ago

isn't this solving your issue? https://hasura.io/blog/introducing-scheduled-triggers-api-driven-cron-jobs-scheduled-events/

rapacity commented 4 years ago

isn't this solving your issue? https://hasura.io/blog/introducing-scheduled-triggers-api-driven-cron-jobs-scheduled-events/

Currently at best you can schedule a cron job to run at an interval of once every minute but not more fine grained than that.

As an example, if I have a materialized view that I'd like to refresh on a 15 seconds interval, I wouldn't be able to create a cron job to do that from hasura.

MistreanuIonutCosmin commented 2 years ago

Please add this functionality. It would make synchronization with external APIs much easier.

ifokeev commented 1 year ago

Need this too. Please, add it