treasure-data / digdag

Workload Automation System
https://www.digdag.io/
Apache License 2.0
1.31k stars 221 forks source link

Unable to kill node.js task #1766

Closed mattp0123 closed 1 year ago

mattp0123 commented 2 years ago

If a node script ran like this:

(function wait () {
  setTimeout(wait, 1000);
})()

It can't be killed (by digdag client kill command or clicking the kill button on dashboard).

hiroyuki-sato commented 2 years ago

Hello, @mattp0123

kill command doesn't stop the task immediately. It stops the workflow after current task is finished.

mattp0123 commented 2 years ago

@hiroyuki-sato Thanks for your reply.

kill command doesn't stop the task immediately. It stops the workflow after current task is finished.

So what am I supposed to do to stop the task immediately?

hiroyuki-sato commented 2 years ago

Hello, @mattp0123

IIUC, you need to wait for the task completion.

For example, If you kill the BigQuery session in the bq> operator, There is no guarantee to kill the session on the BigQuery side. In that case, the query still runs on the unmanaged area.