Comment 3 for bug 1654761

Revision history for this message
Iain Lane (laney) wrote : Re: Use another status for retried but queued items

proposed-migration can't check directly if things are in the queue. AMQP allows you only to insert something into the queue and remove it again.

Except for the hack which we have in webcontrol.

Also, I think that you want to refuse manually constructed URLs too. So I think I would do this in the request script. Look at get_queue_info() and running() - you should make these callable from request.cgi, and then refuse the request if you find a matching one in either of those. Probably fix this in validate_distro_request() and validate_git_request()?

This will leave links that give you an error available on excuses.html. I don't think that's so bad, but if you wanted to fix that then maybe http://autopkgtest.ubuntu.com/queues.json and a similar for running tests could be exposed to proposed-migration somehow. Not exactly sure how right now - it wouldn't be ideal for proposed-migration to be hitting autopkgtest's website.

Thanks!