Hey! Anyone know how to run an asynchronous job or something like that can run in the background while I return a value to the user first?
I've got this thing where I've got a prompt, generated using an LLM, I am currently calling this API within a convex action and now I need to pass this prompt to a text-to-image model.
Problem now is that inference can take quite a while and I don't want users to wait forever on the main page.
Does convex have any functionality to allow me to queue actions or something like that so I can query the api for a status while I return something like a predetermined string to my client-side? Or am I going to have to use workers on my server side instead?