I'm using the scheduled task adapter to trigger orchestrations, using the XmlStringStreamProvider, and to create a singleton pattern in the orchestration.
The receive location is configured to trigger a message every minute and the orchestration is designed with a loop to ignore other trigger messages in case the duration exceed 1 min.
It's not perfect and I get Zombie messages.
The issue is that 2 messages are sent to my orchestration every minute ..
I did a test, triggering an orchestration without the singleton pattern loop, and two instances started at the same time, after 1 min.
And when I look at my zombie messages in the suspended instance, they are always by pair.
In the example attached:
- The orchestration started at 3:55:00 (triggered by 1 message from the adapter, and ignore the duplicate)
- At the end, there are 4 zombie messages, you can group them by 2: same message ID, same creation date.
- 2 messages created at 3:55:58 and 2 messages created at 3:55:59
So for a schedule set up every minute, something is wrong ...
Any help would be welcome :)
Thank you.
Comments: ** Comment from web user: sandro_asp **
Again difficult to debug this problem, but I am trying to emulate with 30m, 10m, 2H and even with 1s and everything is running fine with the new release I am working on - only one message is being triggered.
And again, if you have several BizTalk boxes, you can only run the host instance in one of the servers, otherwise, you need to cluster the host.