Skip to content

Api method GetById can return NotFound for started batch #3

@DnikitaA

Description

@DnikitaA

if you run multiple SampleBatch.Service instances, you can get a race condition. A situation may arise when different instances of SampleBatch.Service capture messages BatchReceived and StateRequested at the same time with the same BatchId. And then BatchStateMachine will return BatchNotFound, since BatchState at this moment has not yet been saved to the database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions