Apify Discord Mirror

Updated 5 months ago

Webhook config per schedule

At a glance
The community member has found a document about setting ad-hoc webhooks per actor run, but there is no information about the schedule case. The community member's use case is to have multiple environments (prod, staging, etc.) and the need to configure the webhook URL in schedules so that different schedules can send results to different webhook endpoints. The community member knows they can add multiple webhooks to an actor, but this means that for every run, the results will be sent to all endpoints, which is not ideal. A community member suggests the solution of having a separate task for each environment and setting the webhook on the task.
Useful resources
Hi all, I've found this doc about setting ad-hoc webhooks per actor run but there isn't any info about the schedule case. My use case is I have multiple environments (prod, staging, etc...) and I need an ability to configure webhook url in schedules so different schedule can send results to different webhook endpoint. I know I can add multiple webhooks to an actor but it means for every run, it'll send results to all endpoints which isn't ideal.
https://docs.apify.com/platform/integrations/webhooks/ad-hoc-webhooks
L
1 comment
The solution would be to have separate task for each environment and set the webhook on the task
Add a reply
Sign up and join the conversation on Discord