#are workflows by default synchronous?

3 messages · Page 1 of 1 (latest)

earnest radish
#

are workflows by default synchronous?

ornate cypressBOT
#

Hi @earnest radish. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

No, workflows in Convex are not synchronous by default. Workflows are designed to run asynchronously in the background. You start a workflow using workflow.start(), and it executes independently of the function that started it. You can observe the status of a workflow reactively via subscriptions, and workflows can run for extended periods—even months—surviving server restarts. They are intended for long-running, durable, and asynchronous operations, not for synchronous execution that blocks until completion Components > Workflow.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: