Questions tagged [cadence-workflow]
Questions related to the Cadence workflow engine
211
questions
0
votes
1
answer
23
views
How to determine the number of workers I need in Uber Cadence?
Recently our team encountered 'out of memory' errors in cadence-frontend pod.
{"error":"Error 1135: Can't create a new thread (errno 11); if you are not out of available memory, you can ...
0
votes
1
answer
21
views
Cannot find workflow definition even though I register it to worker
I'm registering two workflows to my Cadence worker based on Spring Boot. However, even though I successfully register all my workflows and start the worker, I'm only able to use one workflow. Here is ...
1
vote
0
answers
18
views
How can I pass a complex objects as input when using Cadence HTTP API tool?
Here is a sample workflow and its input struct:
func MyWorkflow(ctx cadence.Context, input MyInput) error {
...
}
type MyInput struct {
SomeString: string,
SomeInteger: int
}
According ...
0
votes
0
answers
33
views
Connection timeout on identification
I am trying to connect to my new cadence server (for this test, it's running in a Kubernetes cluster and I have a port-forward set up), but I am getting a Connection timeout on identification error.
...
1
vote
1
answer
79
views
Unable to run Cadence Workflow from GoLang
I am pretty new to cadence and was trying to implement hello world but getting below error
2023-10-05T10:30:50.695+0530 INFO internal/internal_worker.go:834 Started Workflow Worker {"Domain&...
0
votes
1
answer
99
views
Problems with Cadence-Cassandra when searching for closed workflows
We have encountered a longstanding issue related to Cadence and Cassandra.
When making a request to retrieve a list of closed workflows (either "closed" or "completed") via Cadence-...
0
votes
1
answer
29
views
What is the config file format when i use the command ./server start?
So i can not use the official docker images on arm64 platform, so i compile it on my own pc. but there is a issue when i start it.
Here is the information:
[server]# ./server start
2023/08/09 09:32:45 ...
1
vote
1
answer
32
views
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 "...
0
votes
0
answers
31
views
Are there any pros and cons for code maintenance when using the default settings of the Cadence Versioning API?
I've heard that using the Cadence versioning API with the default settings can have both positive and negative consequences for code maintenance depending on how you want to use it. Can anyone briefly ...
1
vote
2
answers
149
views
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 ...
1
vote
2
answers
312
views
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 ...
0
votes
1
answer
250
views
What is Replay in Cadence/Temporal workflow?
What is Replay in Cadence/Temporal workflow? Is it the same as "retry"?
Why can't I simply use my own logger in workflow code due to replay?
0
votes
1
answer
330
views
Automatic heart-beat of Cadence workflow/activity
We have registered the activities with auto-heartbeat configuration EnableAutoHeartBeat: true and also configured the activity option config HeartbeatTimeout: 15Min in the activity implementation.
Do ...
1
vote
1
answer
113
views
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"...
2
votes
1
answer
1k
views
What is the best way to make use of the workflow reset feature in Cadence/Temporal/iWF?
What I should consider in a design regarding to workflow reset?
3
votes
2
answers
2k
views
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.
0
votes
1
answer
201
views
Does cadence have any mechanism to ensure that the entire execution process of workflow decision falls on the same workflow worker?
If the decision task is acquired by a workflow worker that has never been executed, doesn't it mean that he has to pull the historical state from the cadence service to restore it and then execute the ...
1
vote
1
answer
357
views
How to use Cadence/Temporal versioning API( workflow.getVersion) in a loop
Imagine this workflow of 10 activities in a loop:
public class LoopWorkflowImpl implements LoopWorkflow{
private final Api api = Workflow.newActivityStub(Api.class, ...)
@override
public int ...
1
vote
1
answer
66
views
Why cadence's executions table with cassandra does not to split to multi tables
Why cadence's executions table with cassandra does not to split to multi tables such as transfer_task and timer_task?
0
votes
2
answers
221
views
how to reset a cadence workflow with client sdk?
i have a cadence workflow with 3 activities. Scenario. the first activity is completed while executing second, the workflow failed after retry limit reached. now the problem has been fixed. how can i ...
0
votes
1
answer
313
views
Removing cadence workflow and activity timeout
I'm writing a project that uses cadence workflows (cadence client 3.6.2)
And I was watching a talk by maxim fateev in 2018 that mentions that cadence workflows are virtual objects and it is better not ...
0
votes
0
answers
141
views
Cadence cron workflow disappearing from workflow list after 24 hours, but still running
I've setup a Cadence cron workflow to execute on a specific day of each month. After registering the workflow with:
cadence --address localhost:7933 \
--domain domain-name workflow start --tl ...
0
votes
2
answers
130
views
How to detect if an older Cadence version is still running in Production and safe to delete?
What is the best mechanism to detect if an older Cadence version branch is still running in Production and safe to delete? It seems like Cadence’s logger is idempotent and won’t log > 1 time, so ...
1
vote
3
answers
606
views
Iterative activity in Cadence / Temporal workflow
This can be considered a follow-up question to Invoking the same activity inside a loop in cadence workflow:
How does the workflow recover in case of activity iteration ? Will is continue invoking the ...
1
vote
2
answers
450
views
What is a good use case for a delay task in Uber Cadence?
I want to implement a delay task and found a cadence cron example, how to use cadence to implement a delay task?
0
votes
0
answers
308
views
Cadence activity task not retrying even after providing retry configuration
Cadence server version: 0.19.2
I have made following observation: I have a Job workflow that triggers encoding workflow (child workflow) which has an activity to handle encoding status. I have ...
0
votes
1
answer
130
views
Is it inefficient for cadence to use the database to implement scheduled tasks?
The scheduled tasks of cadence are stored in the database, so the problem of database polling must be involved. As the amount of data increases, how does cadence improve the query efficiency and the ...
3
votes
1
answer
3k
views
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 ...
0
votes
1
answer
315
views
docker connect cockroachDB failed
I'm using docker to start cadence server, but I can't connect to my cockroachDB, the following error occurs.
How can I resolve this problem?
-1
votes
1
answer
113
views
How to shard cadence matching service?
If I use mysql as database for cadence, I know if sharding is 100, there are 100 table that bound to history service in cadence.
My question is that in this case, all tastList in matching service, ...
0
votes
2
answers
197
views
will a workflow be executed by multiple workflow workers at the same time?
Under normal circumstances, will a workflow be executed by multiple workflow workers at the same time? Because multiple workflow workers can polldecision tasks to execute, if not, how does he do it?
0
votes
2
answers
172
views
Why private members are not passed from Cadence activities? [duplicate]
I noticed that when I use a struct consisting of both public and private members, then the private ones are not copied(?) by Cadence activities.
For example I have a struct:
package foo
type Foo ...
1
vote
1
answer
99
views
Can you use the same workflow id in different domains in Cadence?
Is it possible to register a Cadence workflow with the same workflow ID in different domains?
0
votes
1
answer
87
views
Cadence client errors
We were trying to do a bench test for our cadence setup (currently running on 2 EC2 instances: m5a.xlarge)
Have observed a lot of cadence client errors:
cadence_service:cadence_matching,operation:...
5
votes
1
answer
2k
views
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 ...
2
votes
1
answer
240
views
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, ...
1
vote
1
answer
210
views
How to make cadence workers stop accepting new tasks
I want to achieve a use-case where, during graceful scale-down, I want to ensure that cadence workers do not accept any new jobs. I am using cadence on k8, so I plan to give a
...
2
votes
1
answer
270
views
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 ...
0
votes
1
answer
303
views
Pending decisison tasks never picked for execution and eventually times out in uber cadence workflow
What could be the reason for the decision tasks to not get picked for execution in cadence cluster. They remains at pending state and finally times out. I dont see any error logs. How do I debug this ?...
1
vote
1
answer
60
views
What happens to the CronWorkflows in Cadence if a cluster is down when a workflow should have started?
What is the behaviour of CronWorkflows in the event that the Cadence cluster is down while a workflow should have started? When the cluster comes back, would we expect the workflow to still be started?...
1
vote
1
answer
229
views
Visualizing Cadence Workflows
What is the best way to visualize cadence workflow for users?
I want to show users the different steps of the workflow in a high level view (something similar to what most food delivery apps have: ...
1
vote
1
answer
484
views
What should I consider when using Cadence/Temporal to design a new project?
I am new to Cadence/Temporal and was wondering what the design review process is like. My team is ready to have a formal design review out but was wondering if there is a template available to ...
2
votes
2
answers
148
views
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 ...
2
votes
1
answer
124
views
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?
1
vote
1
answer
84
views
What does "history_node table is full" error in cadence-history service mean?
we are seeing cadence-history server The table 'history_node' is full errors in our logs. We're on version 0.16.0 and using MySql database.
0
votes
1
answer
759
views
How to return the processing result of a signal?
Especially if the signal processing needs to invoke an/some activities, how can I achieve that?
I tried to return data or exception but it doesn't work.
Data cannot be returned from signal method. ...
-1
votes
1
answer
64
views
Monitors setup in local
I am trying to setup monitoring in local as mentioned in https://cadenceworkflow.io/docs/operation-guide/monitor/#instructions
Having these errors for http://host.docker.internal:9098/metrics, http://...
1
vote
1
answer
580
views
Does uber-cadence framework enforce limits on the number of signals received over the lifecycle of a workflow?
From Uber's Cadence doc, it says that a single workflow cannot expect to run more than 100k activities over the lifecycle of the workflow. https://cadenceworkflow.io/docs/concepts/workflows/#child-...
1
vote
1
answer
141
views
Is there a way to get the latency for how long it takes for a Cadence activity worker to pick up a new task?
Is there any way to get the latency for how long it takes for a worker to pick up a new task or how long it takes for an activity to be picked up by a worker?
1
vote
1
answer
135
views
Is there a Cadence metric that can help spot overloads for each specific activity worker?
My company would like to automatically scale the activity workers and each workflow workers independently according to the load of a tasklist.
Reading the docs I have found the following metrics for ...