Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(abort): abort was setting Exception.args instead of sol attribute #9

Merged
merged 1 commit into from
Jul 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion schedula/utils/dsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ def __call__(self, *args, _sol_output=None, _sol=None):
s = key_map[s]

if s.stopper.is_set():
raise DispatcherAbort(sol, "Stop requested.")
raise DispatcherAbort("Stop requested.", sol=sol)

has_node = v not in s.workflow.node
if has_node or not s._set_node_output(v, False, next_nds=nxt_nds):
Expand Down
2 changes: 1 addition & 1 deletion schedula/utils/sol.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def _dsp_closed_add(s):
n = (d, _, (v, sol)) = heapq.heappop(fringe)

if sol.stopper.is_set():
raise DispatcherAbort(self, "Stop requested.")
raise DispatcherAbort("Stop requested.", sol=self)

# Skip terminated sub-dispatcher or visited nodes.
if sol.index in dsp_closed or (v is not START and v in sol.dist):
Expand Down