pkg
pkg copied to clipboard
Support for job cancellation
After libpkg
enters pkg_jobs_solve()
/pkg_jobs_apply()
there is no way to signal it to stop. It'd be great to be able to stop the process while reacting on PKG_EVENT_PROGRESS_START
/PKG_EVENT_PROGRESS_TICK
.
What are you trying to achieve, the problem is in the middle of a transaction, the risk is to stop in an unstable state.
PackageKit has the ability to cancel jobs and I want our backend to support it as much as it can. At least we should be able to cancel during downloading.
pkg
also stops in the middle of jobs_apply
when a trigger fails, as well as user can hit Ctrl+C any time, so we're already risking. Adding some cancellation points may mitigate these risks.
ok I see and pkg tries to remain in a stable state as possible. I'll see what I can do
Another case - cancelling during multiple packages removal after receiving PKG_EVENT_DEINSTALL_FINISHED
.
Duplicate of a 2021 issue?
- #1956
I think this can be closed now.