Wait for background task to complete?

Yes, if you pass data to the background task from the webhook, the background task can do its job and then return data to the scheduled task.

Although, at that point, with your setup, I’m not sure why you wouldn’t just have the background task do what’s needed at the end (e.g. insert into a data table, ping some other webhook, etc). The scheduled task probably isn’t gaining you anything.

2 Likes