Variable not updating to process

Hello,

PFB workflow what we are using,

vendor call our API - here we process request & set variable to process & send message to complete receive task mentioned on #1.

  1. Awaiting Response - Here we wait for response from API
  2. Post Callback Actions - here use variable set while sending message
  3. Validation approved - here evaluate result based on variable set

this is working fine for most of the times but on certain instance, variables on #2 not updated on same iteration but I see variable from previous iteration get updated to next iteration. Had similar issue earlier as well but when we deploy new code version it just work fine without any changes. this behavior is for specific process only

image

Camunda specific details -
1.

io.camunda.spring
spring-boot-starter-camunda
8.2.4

2. Jdk 17
3. code to publish message for “Receive task”

finalPublishMessageResponseevent=
zeebeClient
.newPublishMessageCommand()
.messageName(messageName)
.correlationKey(correlationKey)
.variables(variables)
.send()
.join();