New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Step Functions: heartbeat tokens become invalid when several executions run concurrently #10648
Comments
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide. |
@mbaynton Thank you for taking the time to compile this report. We were not able to replicate the exact same behaviour as you described, however we found some related issues that may be related to what you can observe. We recently merged some changes that aim to address this issue. These changes are scheduled to be included in the next nightly release too. I would be grateful if you could test the new build at your earliest convenience and provide feedback on whether it resolves the problem you encountered. Thank you once again for bringing this issue forward. |
Hello 👋! It looks like this issue hasn’t been active in longer than two weeks. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Is there an existing issue for this?
Current Behavior
If I
waitForTaskToken
and also utilizesHeartbeatSeconds
Then at first, all consumers'
SendTaskHeartbeat
calls work, but eventually at least one of the runningSendTaskHeartbeat
calls starts failing with this stringifiederror
:Subsequent SendTaskHeartbeat calls continue to fail in the same manner until the state machine step times out on account of not having received any hearbeats for the defined
HeartbeatSeconds
period.Some of the other concurrent SFN executions complete and others start during the time the longer one starts experiencing this issue, not sure if that's the cause.
Expected Behavior
SendTaskHeartbeat
calls continue to be accepted until I call back to SFN with a success or failure.How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)By
docker compose run
ning a service with a defined dependency onlocalstack
. docker-compose for the localstack service below.Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
Probably requires more than a few commands, sorry.
We're experiencing this in a private codebase, I would have to write a reproduce from scratch.
Environment
Anything else?
Fixed by using
PROVIDER_OVERRIDE_STEPFUNCTIONS=legacy
The text was updated successfully, but these errors were encountered: