i use tempolar with spring boot and create multiple instance of the same application with the same queue name and worker name and if one of this instance shutdown or closed connection during execution the workflow, is there any way to prevent other instance to processed execute this work flow and marked this workflow as a failed workflow ?
Temporal executions are not tied to specific worker. In your case all workers across app instances you start, if they are configured on same task queue will participate in executing all workflows and activities you start and schedule on that task queue. This means all your workers have to have the same workflow and activity types registered.
if one of this instance shutdown or closed connection during execution the workflow, is there any way to prevent other instance to processed execute this work flow and marked this workflow as a failed workflow ?
Can you explain the use case for this please? Why would you not want for your workflows and activities to be able to continue and complete their executions on other available workers in case of one/some no longer being available?