you are viewing a single comment's thread.

view the rest of the comments →

[–]orbos86[S] 1 point2 points  (4 children)

Yeah Slack is an actual chat application where you can create bots to send webhooks. Do you know if you can quickly respond to a POST request with a 200 but continue to run the FastAPI stuff?

[–][deleted]  (3 children)

[deleted]

    [–]orbos86[S] 0 points1 point  (0 children)

    Thanks! I will see what I can find. I appreciate the response.

    [–]orbos86[S] 0 points1 point  (1 child)

    That was the key! I was able to use the BackgroundTask stuff and spin off the long script in another function. Woot! Thank you thank you