Skip to content
Snippets Groups Projects
Commit d5a094a3 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #2942: We also need to store self.outputs in the statefile. Otherwise we...

Task #2942: We also need to store self.outputs in the statefile. Otherwise we won't get the correct outputs back for a skipped recipe.
parent d7360327
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ class StatefulRecipe(BaseRecipe): ...@@ -67,7 +67,7 @@ class StatefulRecipe(BaseRecipe):
'statefile' 'statefile'
), ),
'w') 'w')
state = [self.inputs, self.state] state = [self.inputs, self.outputs, self.state]
cPickle.dump(state, statefile) cPickle.dump(state, statefile)
def go(self): def go(self):
...@@ -78,7 +78,7 @@ class StatefulRecipe(BaseRecipe): ...@@ -78,7 +78,7 @@ class StatefulRecipe(BaseRecipe):
) )
try: try:
statefile = open(statefile, 'r') statefile = open(statefile, 'r')
inputs, self.state = cPickle.load(statefile) inputs, self.outputs, self.state = cPickle.load(statefile)
statefile.close() statefile.close()
# What's the correct thing to do if inputs differ from the saved # What's the correct thing to do if inputs differ from the saved
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment