Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com
rebased
This is just a PR to discuss the initial parts. My end goal is to have the import_build call spawn a new process on the hub to detach the actual importing. After kicking that off, kojid would just wait until the build switches from IMPORTING to COMPLETE, upon which it would trigger the tagBuild if that's needed.
This way, we save network resources in the case of a big RPM, and also don't depend anymore on every part of the network keeping sockets open for multiple hours.
(At Fedora, the texlive completeBuild takes almost two full hours)
I see the issue and the end idea is interesting, but I'm not sure this is quite the way to go.
I think I would prefer to close this for now and have a planning discussion first.
Also, if we were to add a new build state, we'd need to add it to the end of the Enum. Otherwise we'd change the numeric values of the existing states.
We decided to not do this, in favor of arch=database tasks, and making the completeBuild such a task. As a consequence, I'll close this task out.
Pull-Request has been closed by puiterwijk
Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com