Skip to content

Commit

Permalink
feat(job): resolve job.wait() Future on job cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
wiwichips committed Sep 8, 2024
1 parent d01e022 commit 72c721a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dcp/api/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def handle_complete(resultHandle):
results.append(result)
complete_future.set_result(results)
self.js_ref.on("complete", handle_complete)
self.js_ref.on("cancel", handle_complete)
return complete_future

def exec(self, *args):
Expand Down

0 comments on commit 72c721a

Please sign in to comment.