Questions tagged [cadence-workflow]

Questions related to the Cadence workflow engine

Product questions related to Uber Cadence Workflow Engine.

207 questions
45
votes
4 answers

Temporal workflow vs Cadence workflow

How is temporal.io related to cadenceworkflow.io? What should be used if starting a new project depending on the cadence workflow service?
Felix Mamonov
  • 475
  • 1
  • 4
  • 7
7
votes
2 answers

I don't get workflow, workflow automation or workflow orchestration

Why do we need special software like Uber's Cadence or Camunda or Activiti? If it's just a sequence of tasks then why can't we just code it? I've trying to read Camunda and Cadence's docs and just can't get into it. My company wants to use. The…
6
votes
1 answer

What is a good use case for a child workflow in Temporal or Uber Cadence?

I am trying to understand the use cases for a child workflow with Temporal/Uber Cadence. What is the advantage of a child workflow vs. simply splitting your workflow into functions? I have a rather complex workflow that I am considering splitting…
Maxim Fateev
  • 6,458
  • 3
  • 20
  • 35
5
votes
1 answer

What is the best way/pattern to process a signal in Cadence/Temporal workflow

When using signal like the doc suggests: public class MyWorkflow{ public Output myWorkflwMethod(Input input){ ... } public void mySignalMethod(request){ // do actual processing here. ... } } I may run into the below…
Long Quanzheng
  • 2,076
  • 1
  • 10
  • 22
5
votes
1 answer

How to set proper timeout values for Cadence activities(local and regular activities, with or without retry)?

So there are so many timeout values: For local activity: ScheduleToClose timeout For regular activity without retry: ScheduleToStart timeout ScheduleToClose timeout StartToClose timeout Heartbeat timeout And then more values in…
Long Quanzheng
  • 2,076
  • 1
  • 10
  • 22
5
votes
2 answers

What exactly is a Cadence decision task?

Activity tasks are pretty easy to understand since it's executing an activity...but what is a decision task? Does the worker run through the workflow from beginning (using records of completed activities) until it hits the next "meaningful" thing it…
byang223
  • 95
  • 1
  • 7
4
votes
1 answer

How does multi-threading works in Cadence/Temporal workflow?

In Cadence/Temporal workflow programming: Native threading library is not allowed. E.g. in Java, threads must be created through Async.procedure or Async.function and in Golang, threads must be created through workflow.Go. So why? Is there any…
Long Quanzheng
  • 2,076
  • 1
  • 10
  • 22
4
votes
1 answer

How to create custom workflow definitions?

We have requirements to let our users create their own workflows. Those workflows can have simple yes / no branching as well as waiting for a signal from an external event. This wouldn’t be such a problem if we had well established workflow…
martinni39
  • 323
  • 3
  • 10
3
votes
1 answer

How to get `context.Context` from `workflow.Context`?

I'm implementing a Cadence Workflow that needs to call functions with context.Context parameters. How do I go about getting a context.Context from the workflow.Context? Is it just a matter of ctx.(*context.Context)?
Noel Yap
  • 18,822
  • 21
  • 92
  • 144
3
votes
1 answer

Workflow task failure.com.uber.cadence.internal.worker.WorkflowExecutionException: java.lang.IllegalAccessException

i am trying to execute the Cadence java client example provided in the https://cadenceworkflow.io/docs/06_javaclient/01_quick_start and getting the below exception when i am starting a work flow using the CLI 09:45:02.123 [Workflow Executor…
3
votes
1 answer

Sending external events to a workflow

In our cadence workflow we often need to wait a certain amount of time for external events before continuing (ie Email read, link clicked, etc..). I was wondering what was the best way to notify our workflows of these events. Are signals the right…
martinni39
  • 323
  • 3
  • 10
2
votes
2 answers

Should I use child workflow or use activity to start new workflow

Like the title. Seems like both ways should work but child workflow seems easier.
Long Quanzheng
  • 2,076
  • 1
  • 10
  • 22
2
votes
1 answer

If we use multiple taskqueue in temporal, how my worker know which one to poll task?

If I set 10 video taskqueue in temporal matching, if we have 5 matching services, temporal will assign 2 video taskqueue for each matching service? If I set 10 video taskqueue in temporal matching, if we have 50 workers for them, how are they…
zheyi yi
  • 129
  • 10
2
votes
1 answer

How to measure number of running workflows in cadence

I'd like to monitor in Prometheus number of cadence workflows currently running. I checked metrics which are exported by different cadence services (like cadence_history, cadence_worker, cadence_frontend and so on) and the only workflows-related…
trivelt
  • 1,913
  • 3
  • 22
  • 44
2
votes
1 answer

Very high number of threads in active use in Cadence cluster

While performing the load testing of the cadence cluster, we are seeing extremely high number of threads ( > 4000) and it constantly remains like this consuming high CPU and memory. It remains like this, when there are no external signals or active…
Ezio
  • 2,837
  • 2
  • 29
  • 45
1
2 3
13 14