OpenST / openst-contracts

OpenST is a framework for building token economies on Ethereum
Apache License 2.0
26 stars 19 forks source link

Commander: Define schema for process management #212

Closed 0xsarvesh closed 5 years ago

0xsarvesh commented 5 years ago

Details

As a facilitator developer, I want to ensure that it is possible to run only a single instance of each process like a facilitator, scanner per chain So that I can avoid any possible race conditions.

Each process can make entry to Database when they start. Each process should be uniquely identified.

Scenarios:

When there is no existing process running, If I start a type of process like (Scanner or facilitator) for a chain It should successfully run the process.

When there is an existing process running of a type, If I start the same type of process for a chain, It should break the process with an appropriate message.

0xsarvesh commented 5 years ago

Created in the wrong repository. 🙏