Questions tagged [uber-cadence]

90 questions
0
votes
1 answer

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:historyclientrecordactivitytaskstarted As of now we…
0
votes
1 answer

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 ?
Ezio
  • 2,837
  • 2
  • 29
  • 45
0
votes
1 answer

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. Throwing exception will block workflow execution.
Long Quanzheng
  • 2,076
  • 1
  • 10
  • 22
0
votes
1 answer

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 workers are restarted, will the activities and…
0
votes
1 answer

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 before implementing: context.Context and…
trivelt
  • 1,913
  • 3
  • 22
  • 44
0
votes
1 answer

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 configuration requires headless services, but…
0
votes
1 answer

How to pass the yaml property to Uber Cadence cronSchedule annotation

I am new to uber Cadence and trying to write a cron scheduled task. Cadence provided a cronSchedule annotation (find an example online) which takes a cron expression string for the method to be triggered at specific time. However, I want this cron…
Laodao
  • 1,547
  • 3
  • 17
  • 39
0
votes
2 answers

Scaling limitation of workflow workers due to continuous polling in Uber Cadece?

I am evaluating cadence for implementing our business orchestration. I understand that the workers continuously poll the task list for tasks to execute. My concern here is that will it cause any scale problems? The worker is always busy and…
Ezio
  • 2,837
  • 2
  • 29
  • 45
0
votes
2 answers

How to effectively use Worker, WorkflowClient

Product Use Case - Our product has a typical use case where we will be having n no of users. Each user will have n no of workflows and each workflow can be run at any time(n of time). I hope this is a typical use case of any workflow product. can I…
0
votes
1 answer

Understanding Signal and Query in cadence

Query - Query is to expose this internal state to the external world. A query is exposed as an asynchronous callback that is invoked by external entities. What do you mean by asynchronous callback? And Doc says, Query has two limitations 1). Should…
0
votes
1 answer

How does history replay works in cadence?

How does history replay work in cadence? I have a workflow which calls two activity sequentially. Say, the first activity got completed and the second has 100 no of lines of code. If the app server restarts when executing the 50th line of the code…
0
votes
2 answers

How to get result of an Activity without waiting for ? In a event driven fashion

Team, I have a doubt in calling activities in parallel. I know that activities can be called parallelly using the Async.function. For my use case, I wanted to call n no of activities in parallel after receiving results from all activities I wanted…
0
votes
1 answer

Registering a workflow with a remote Cadence server: Any examples

How does one go about registering the workflows with a remote Cadence Server? Almost all examples are pointing to a local server. Thanks Sanjay
Sanjay
  • 11
  • 2
0
votes
1 answer

Cadence Java client - Worker.Factory cannot be resolved

I am following the samples given in the java client sdk. Specifically https://github.com/uber/cadence-java-samples/blob/master/src/main/java/com/uber/cadence/samples/hello/HelloWorkerSetup.java Compiler is not able to resolve Worker.Factory I have…
Sanjay
  • 11
  • 2
0
votes
1 answer

Cadence: What is the best practice to change the workflow cron schedule?

We have a workflow that uses cron based scheduling. We need to support a use case to change the cron expression. What is the best practice to do so?
Yasin
  • 1,906
  • 1
  • 21
  • 37