Skip to content

Commit

Permalink
⚡️ #149 run all/run to here excute failed stop to current cell (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
githubnameting authored Mar 31, 2022
1 parent 0ecae5d commit b950d8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/CellBox/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default {
},
handleRunToHere () {
this.$emit('handleRunToHere', this.cellId)
},
},
handleStopToHere () {
this.$emit('handleStopHere')
},
Expand Down
8 changes: 7 additions & 1 deletion src/page/Workspace/Notebook/CellList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -687,11 +687,17 @@ export default {
this.newCellList[index].loadingResult = false
this.someIsRunning = this.newCellList.some(cell => cell.status === 'RUNNING')
// 为了通知运行结束
if (this.runningIndex === -1) {
return
}
if (status !== 'RUNNING' && status !== 'NEW' && this.isRunningAll) {
this.confirmExcuteAll()
if (status === 'ERROR') { // 停留在当前 cell, 停止运行
this.isRunningAll = false
return
} else {
this.confirmExcuteAll()
}
} else if (status === 'NEW' && this.exuteType === 'stop') {
this.confirmStopAll()
}
Expand Down

0 comments on commit b950d8d

Please sign in to comment.