Skip to main content
9k+ Stars on GitHubSee Adopters

Orchestrate with Confidence

Write fault-tolerant, stateful background workflows as code in Go, Java and Python without worrying about retries, queues, or state persistence.

func SubscriptionWorkflow(ctx workflow.Context, id string) error {	ctx = workflow.WithActivityOptions(ctx, opts)
	// Cadence retries this activity for you.	err := workflow.ExecuteActivity(ctx, Charge, id).Get(ctx, nil)	if err != nil {		return err	}
	// Durable sleep: survives worker restarts.	workflow.Sleep(ctx, 30*24*time.Hour)	return workflow.ExecuteActivity(ctx, Renew, id).Get(ctx, nil)}