-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't restart on bad hardhat config (#212)
To stop a restart loop on bad hardhat config the hardhat worker has been enhanced to have a lifecycle. The background process starts as UNINITIALIZED. On `init` it moves to `STARTING`. Any unexpected exits during starting moves it to `INITIALIZATION_ERRORED`. Only an edit to the config file will trigger a retry from this state. On initialization completing within the background process, it will send a `INITIALISATION_COMPLETE` message, that will move the state to `RUNNING`. An unexpected exit while `RUNNING` will lead to a restart. Validation requests to the process if it is not in the running state (so errored or still starting), leads to a validator error which will be displayed to the user. In response to #211.
- Loading branch information
Showing
8 changed files
with
519 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.