feat: with ctrl-c signal
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
0fd19c771f
commit
56cc671593
@ -134,6 +134,10 @@ impl Mad {
|
||||
}
|
||||
res = comp.run(job_cancellation) => {
|
||||
error_tx.send(res).await
|
||||
|
||||
}
|
||||
_ = tokio::signal::ctrl_c() => {
|
||||
error_tx.send(Ok(())).await
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user