trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

[TRI-726] Create support for polling triggers

Open matt-aitken opened this issue 2 years ago • 3 comments

Some APIs don't have webhooks, e.g. Notion, Google Sheets.

We'll need to use polling to support these. To achieve this we'll need to store the previous data and see what (if anything) has changed. We should allow triggers to only subscribe to certain types of changes (by specifying a filter and create/delete/update as well probably).

We need to add support for this on the platform side and add helper functions to the main SDK that would make doing polling easier.

Similar to this: https://nohooks.io/?ref=producthunt

From SyncLinear.com | TRI-726

matt-aitken avatar Jul 24 '23 15:07 matt-aitken

I like to take this issue, but I need some guidance. If that is okay, I like to work on this Issue.

theashishmaurya avatar Jul 24 '23 17:07 theashishmaurya

Hi @theashishmaurya,

Sorry when i created this I should have assigned this to @ericallam who is going to be building this.

matt-aitken avatar Jul 25 '23 19:07 matt-aitken

Hi @theashishmaurya,

Sorry when i created this I should have assigned this to @ericallam who is going to be building this.

ohh okay, got it.

theashishmaurya avatar Jul 26 '23 18:07 theashishmaurya