You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
Picture this: You are running the script , it writes data into a json and you stop by from keyboard for whatever reason. Data inside the json will not have the correct format next time the script loads the data into a variable. Basically the script with throw and exception and stop. We have to find a way to prevent that from happening. Not allowing the user to interrupt the process seems off the table because the script can suddenly be stopped for various of reasons.
The text was updated successfully, but these errors were encountered:
mutterroland
changed the title
Handle script interruptions in the middle of action
[Core] Handle script interruptions in the middle of action
Mar 1, 2019
Sounds like you want some logic to make each run atomic (either complete or revert on error).
@aki's suggestion probably would be the easiest. One thing to consider is how often this would happen. If your use case is a human interrupting the script, I think it's not worth fixing given the md and json is all in version control. You can just rollback to an earlier rev or clean your staging environment.
Picture this: You are running the script , it writes data into a json and you stop by from keyboard for whatever reason. Data inside the json will not have the correct format next time the script loads the data into a variable. Basically the script with throw and exception and stop. We have to find a way to prevent that from happening. Not allowing the user to interrupt the process seems off the table because the script can suddenly be stopped for various of reasons.
The text was updated successfully, but these errors were encountered: