Questions tagged [uber-cadence]
90 questions
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
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
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
2
votes
2 answers
How to have a Cadence workflow reject signals
Is there any way other than MaximumSignalsPerExecution to have a workflow reject signals?
Basically I have a workflow that periodically continues as new before it timeouts. But if it's continuously getting a lot of signals before it can continue as…

Aleks
- 23
- 4
2
votes
1 answer
Is there a Cadence metric that shows how many activities are waiting to be executed in a task list?
I'm trying to find a Cadence metric that shows how many activities are waiting to be executed in a task list. Is there such a metric?

Sharan Foga
- 135
- 8
2
votes
2 answers
Does Cadence have the concept of Workflow Evolution?
"Does cadence have a concept of ""workflow evolution""?
In other words, I have a ""stateful actor"" that models a customer. Initially, the customer has two fields with some signal methods that modify them, some query methods that fetch state, and…

Sharan Foga
- 135
- 8
2
votes
1 answer
Get registered activities on Uber Cadence
I'm working on a project that uses Uber Cadence Java Client. How can I get the list of registered activities from the code?
Thank you.

Francisco Teixeira
- 35
- 3
1
vote
1 answer
How to kill a cron parent workflow
Customer question: "I have a parent workflow that invokes a cron scheduled child workflow daily. If I want to stop the whole thing and re-start, seems that I just need to terminate the next "open" status child workflow (scheduled to run at next cron…

Bowen
- 21
- 2
1
vote
2 answers
How to execute the same workflow with cadence RegisterDelayedCallback in unit tests?
Is it possible to run unit tests with RegisterDelayedCallback that executes the same cadence workflow?
I have the following code that runs a workflow twice, the first execution saves a callback token and the second execution retrieves the saved…

3tbraden
- 667
- 1
- 10
- 21
1
vote
2 answers
Uber Cadence - Timer started
I am new to Uber Cadence framework and currently working on a project workflow management project using Cadence. I am seeing strange behavior all the workflows are having a timer for ~270hrs as part of the flow and I am not sure how that number is…

siva
- 53
- 1
- 10
1
vote
1 answer
Cadence Java client, unable to get history of workflow executions
I am following the idea, mentioned in this answer and trying this:
workflowTChannel.ListClosedWorkflowExecutions(ListClosedWorkflowExecutionsRequest().apply {
domain = "valid-domain-name"
startTimeFilter = StartTimeFilter().apply {
…

o_nix
- 1,146
- 1
- 16
- 30