triggerdotdev / trigger.dev

Trigger.dev is the open source background jobs platform.
https://trigger.dev/changelog
Apache License 2.0
9.2k stars 574 forks source link

[TRI-726] Create support for polling triggers #208

Open matt-aitken opened 1 year ago

matt-aitken commented 1 year ago

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

theashishmaurya commented 1 year ago

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

matt-aitken commented 1 year ago

Hi @theashishmaurya,

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

theashishmaurya commented 1 year ago

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.