Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

resume after crash. #24

Open
airtonix opened this issue Jan 27, 2017 · 0 comments
Open

resume after crash. #24

airtonix opened this issue Jan 27, 2017 · 0 comments

Comments

@airtonix
Copy link

Gasket steps (and any step in a generic task runner) should be idempotent, but in reality users are free to use whatever i.e rm -rf / o.0.

So, instead the pipeline should support resuming from last failed step.

A way of dealing with this that I've seen before is :

  1. by storing a hash of the pipeline manifest,
  2. creating a temporary $PWD/gasket-progress.json file which stores current progress of the pipeline execution
  3. on error, bail. show error explaining the presence and purpose of the progress file
  4. allow the user to fix errors. and run gasket resume
  5. continue execution from last failed step specified in $PWD/gasket-progress.json.
  6. bail if pipeline manifest source (gasket.json, package.json, etc) changes (since progress wouldn't match)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant