You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Wouldn't it be cool if Defer.run would provide a way to set up webhooks (like Stripe does) to listen to the execution status changes via some endpoint.
This endpoint could return the usual stuff: id, state, result plus the metadata provided when invoking the function. This would allow to set a custom data like userEmail and send an email automatically once webhook is called.
Currently, I have to store the execution ID in the database, and check the getExecution method periodically in a cron job to check if the status is changed (unless there's a better way to do it).
Let me know what you think.
Thanks
The text was updated successfully, but these errors were encountered:
That sounds like a great idea! I've added it to our ticket system. We need to write a specification defining the type of event, how to handle retries, which mechanism to use to secure the webhook, and how to display it on the console, etc. I'll let you know when we have more information about this feature.
Hi,
Wouldn't it be cool if Defer.run would provide a way to set up webhooks (like Stripe does) to listen to the execution status changes via some endpoint.
This endpoint could return the usual stuff: id, state, result plus the metadata provided when invoking the function. This would allow to set a custom data like
userEmail
and send an email automatically once webhook is called.Currently, I have to store the execution ID in the database, and check the
getExecution
method periodically in a cron job to check if the status is changed (unless there's a better way to do it).Let me know what you think.
Thanks
The text was updated successfully, but these errors were encountered: