cadence-workflow

Cadence Workflow: Pass host specific objects like database connections, service clients, etc to activity implementation

被刻印的时光 ゝ 提交于 2021-01-29 07:41:45
问题 When a cadence worker comes up it initializes certain resources like database connections and client for other services. What is the correct pattern to make these resources accessible from activity implementations? 回答1: Go You can pass anything your activity needs via the context to your activity. Here is how it works: 1) Before you start your worker, set whatever you need as value to a context (below code happen at where you setup your worker): myThriftClient := ... // create my thrift

What exactly is a Cadence decision task?

左心房为你撑大大i 提交于 2021-01-07 03:28:34
问题 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 needs to do while making a "decision" on what needs to be done next? 回答1: TLDR; When a new external event is received a workflow task is responsible for determining which next commands to execute. Temporal/Cadence workflows are executed by an

What exactly is a Cadence decision task?

让人想犯罪 __ 提交于 2021-01-07 03:27:13
问题 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 needs to do while making a "decision" on what needs to be done next? 回答1: TLDR; When a new external event is received a workflow task is responsible for determining which next commands to execute. Temporal/Cadence workflows are executed by an

Solutions to fix stuck timers / activities in Cadence/SWF/StepFunctions

♀尐吖头ヾ 提交于 2020-12-13 04:54:34
问题 So timers are durable in workflow engines like Cadence, SWF and Step functions. Durable timer is useful for use cases that need to wait for a long period of time, then wake up to execute some business logic. Because of the durability, it’s resilient to various failures, making the programming experience and model much better for developers. But what if you want to change a timer after it has started? Like this example: @Override public void sampleWorkflowWithTimer(Input input){ //... //some

Temporal workflow vs Cadence workflow

我怕爱的太早我们不能终老 提交于 2020-08-24 06:50:41
问题 How is temporal.io related to cadenceworkflow.io? What should be used if starting a new project depending on the cadence workflow service? 回答1: Disclaimer : I'm the original co-founder and tech lead of the Cadence project and currently co-founder/CEO of the Temporal Technologies. temporal.io is the fork of the Cadence project by the original founders and tech leads of the Cadence project Maxim Fateev and Samar Abbas. We started Temporal Technologies and received VC funding as we believe that

How to make changes or fixes to Uber Cadence Workflow without breaking determinism? [closed]

守給你的承諾、 提交于 2020-06-28 07:06:59
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Improve this question What is the recommended practice for upgrading running workflows? If there are already running executions created using previous workflow implementation, then making any code change or updating workflow logic results in "Non Deterministic Error" from