18 Commits

Author SHA1 Message Date
Stephan Kulow
6ce3c9b28f repo monitor: Only keep looking for scheduling repos
Once the repo is building again, we don't want to poll but wait
for amqp again
2022-04-02 11:31:24 +02:00
Stephan Kulow
97ef270b3f repo monitor: If a repo is in scheduler flux, just keep monitoring it
There is a good chance that the scheduler won't send another event, so
we can't just discard unfinished repos :(
2022-04-01 14:59:35 +02:00
Stephan Kulow
aaab4af930 Target F401 - Unused imports 2022-02-18 18:29:27 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
4e9c8eabbe Target E305 - Have two empty lines of a class 2022-02-18 17:11:46 +01:00
Andrii Nikitin
9e9479d6b0 Fix MQ timeouts in rabbit-repoid
AMQP Server on practice sometimes closes connection when update_repo()
is busy in gocd/rabbit-repoid.py.
Doing the same work just in still_alive() seems be sufficient and
fixes the same problem in local environment.
2020-10-07 12:51:04 +02:00
Andrii Nikitin
667235b65e Do not try to push empty changes in rabbit-repoid 2020-10-07 08:10:30 +02:00
Andrii Nikitin
2b3154f983 Check git errors in rabbit-repoid 2020-10-06 15:24:34 +02:00
Stephan Kulow
236cf1ab38 Split the work done in rabbit-openqa into smaller chunks
As the rabbitmq heartbeart interval is a hard limit, we need to make sure
we're not overloading the time in between
2020-03-13 15:20:01 +01:00
Stephan Kulow
3cd2623618 Stop repo monitor earlier: 30 hours might be a little excessive 2020-03-06 09:39:02 +01:00
Stephan Kulow
bef4dc3083 Let the rabbit monitors run for 3 hours instead of one
This makes the startup time easier to justify
2020-03-04 13:00:43 +01:00
Stephan Kulow
6e84bae03a Make rabbit-repoid more stable
Instead of fetching all OBS repos in one loop and running into a timeout,
slice this into 25 repos every 5 seconds until it's done
2020-03-04 12:58:52 +01:00
Jimmy Berry
b68a46d352 Move PubSubConsumer to osclib.PubSubConsumer to allow for proper import. 2019-09-11 18:55:22 -05:00
Stephan Kulow
e4215b5b83 Take pkglistgen from git - avoid deployment loop 2019-05-30 09:26:44 +02:00
Stephan Kulow
a73054b189 Fix rabbitmq acknowledge: first ACK then check the content 2019-05-20 11:43:25 +02:00
Stephan Kulow
6297dacf8b Acknowledge the rabbitmq message
We need to ACK the rabbitmq message for the server to erase it in the
queue - otherwise they are piling up endlessly. As we quit the services
every hour the queue is reset at that point, but that still makes monitoring
the server quite hard as the queues tend to be full all the time
2019-05-18 20:57:05 +02:00
Stephan Kulow
9858031bed Run the monitors in python3 containers 2019-05-15 20:32:50 +02:00
Stephan Kulow
67df42770d No longer package rabbit-openqa but add gocd config for it 2019-03-20 06:47:37 +01:00