Questions tagged [cadence-workflow]

Questions related to the Cadence workflow engine

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 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
47 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
55 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"...
  • 1,146
1 vote
1 answer
326 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?
0 votes
2 answers
377 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
59 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
132 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
39 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
141 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 ...
  • 1
2 votes
1 answer
532 views

What is a good way/pattern to use Temporal/Cadence versioning API

The Versioning API is powerful. However, with the pattern of using it, the code will quickly get messy and hard to read and maintain. Over the time, product need to move fast to introduce new business/...
0 votes
1 answer
173 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
97 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
80 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
264 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 ...
  • 57
1 vote
2 answers
239 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
153 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
91 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 ...
1 vote
1 answer
1k 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 ...
  • 119
0 votes
1 answer
108 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. enter image description here How can i resolve this problem?
-1 votes
1 answer
86 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, ...
  • 119
0 votes
2 answers
113 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
116 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,883
1 vote
1 answer
61 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
55 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
940 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
164 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,883
1 vote
1 answer
131 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
163 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 ...
  • 2,767
0 votes
1 answer
153 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 ?...
  • 2,767
1 vote
1 answer
44 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
118 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
248 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
90 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 ...
  • 23
2 votes
1 answer
93 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
49 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
440 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
48 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
310 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
77 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
92 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 ...
1 vote
1 answer
226 views

How does cadence memory management works?

I want to understand how cadence-client manages memory for long running workflows. Consider that a workflow runs for 6 months, but it is not active for this entire duration. It becomes active when the ...
  • 2,767
2 votes
2 answers
82 views

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 ...
0 votes
1 answer
139 views

How is a server restart handled in Cadence?

How does the server restart functionality work during the deployment of code in Cadence? What will be restarted? Will it restart only the Cadence service or does it restart the workers as well? If the ...
1 vote
1 answer
290 views

How to cancel/reset workflow from Java Client?

Im seeing cadence cli supports the above commands from cli interface.How to do this through java sdk.Im seeing support only for starting the workflow.
1 vote
1 answer
89 views

Cadence - Cadence Canary failing to start

I am running into this error after Cadence Canary gets started on my cluster nodes. After the error error starting cron workflow.... , Cadence Canary does nothing and just hangs there. Any thoughts/...
  • 33
1 vote
1 answer
55 views

Cadence - Identifying important Operation metrics

I am doing some metrics collection and want to do some aggregations based on Operation. What would you say are the top 5 (or more or less) operations across all services that we should be focusing on?...
  • 33
1 vote
0 answers
138 views

Cadence client and server configurations for benchmarking and scalability?

I've written a Cadence Drone Demo application and I want to benchmark it and scale it up on a large Cadence cluster (6 nodes). What will I need to tune/configure on the client/worker and server-side ...
0 votes
1 answer
492 views

How to pass workflow.Context to the Cadence activity

I would like to put workflow.Sleep call in one of my Cadence activities to be able to test it properly (and simulate error result coming from Sleep function). Two important things which I noticed ...
  • 1,883
2 votes
1 answer
912 views

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 ...
0 votes
1 answer
126 views

Facing issues in setting up Cadence Workflow (Cadence server) in K8

I am facing issues in setting up cadence in Kubernetes environment, following are details CADENCE_SERVER_IMAGE_VERSION: 0.19.2 All Cadence components are running within single pod It seems Ringpop ...

1
2 3 4 5