Open acheong08 opened 2 months ago
Simply removing await workflowRuntime.stop();
worked.
This breaks tests because things aren't cleaned up properly
Could not process the event TASKSCHEDULED due to error NonDeterminismError: Failed to restore orchestration state due to a history mismatch: A previous execution called callActivity with ID=1, but the current execution is instead trying to call completeOrchestration as part of rebuilding it's history. This kind of mismatch can happen if an orchestration has non-deterministic logic or if the code was changed after an instance of this orchestration already started running.
@DeepanshuA can you help with this?
This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.
@acheong08 what about moving the stop the start loop like this, in a SIGTERM handler? this is working reliably for me now
process.on('SIGTERM', () => {
workflowRuntime.stop();
})
please see the change I did for this in Quickstarts https://github.com/dapr/quickstarts/pull/1039/commits/74e2a59a5795de9f1b193aa52dadeb2d3e9be5c9
Expected Behavior
Run example
Actual Behavior
Steps to Reproduce the Problem
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | DAPR_INSTALL_DIR="$HOME/.local/dapr" /bin/bash
dapr init --container-runtime podman
npm run start:dapr:activity-sequence
(in examples)Plausibly related: #221