#105 Allow cancellation of module build
Closed: Fixed Opened by jkaluza.

We should be able to cancel module build including all the queried Koji tasks. It's Thursday and we are building base-runtime submitted on Monday. We have submitted it nine times since Monday and all these tasks are in queue, but we are actually not interested in them anymore. We should cancel them to not waste Koji resources.


Currently, you have to be a koji admin yourself to cancel the builds submitted by the modularity user. We do this from time to time to clean up.

The goal here would be to teach rida to clean up after itself.

  • We would need to add a new http PUT endpoint that would allow you to ask rida to cancel a build.
  • It should only allow you to do this if you were the person who submitted the task (we can add admin roles later).
  • It should mark the ModuleBuild as failed, cancel all of the ComponentBuilds in the local db, and finally it should submit cancellations to koji itself.

Ideally, we would like to be able to re-submit the same module build back to the module-build-service and have it restart the cancelled builds and any failed builds (but not restart the builds that suceeded last time.) This last part doesn't have to be a part of this change, but it is something we should plan for.

See #104 on re-submissions.

@jkaluza changed the status to Closed

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/mbs/issues/105

Please continue any further discussion there.

Metadata