Commit Graph
7 Commits
Author SHA1 Message Date
Lars Wirzenius 800b2ffb44 feat: log when events end and when pushing a shutdown event
All to make the node operator's life easier to understand what's
happening.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-18 12:10:15 +03:00
Lars Wirzenius 3812aba1f7 feat: shorten log messages for events
Format them on one line, not on many lines. This makes logs easier to
skim.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-18 10:53:13 +03:00
Lars Wirzenius 3303d7d873 fix: typo in error variant name
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-16 17:37:56 +03:00
Lars Wirzenius d1c3f1801d feat: cib reads and process events in one subcommand
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-11 12:45:33 +03:00
Lars Wirzenius 14e2eaec01 feat: treat end-of-events as end, not as an error
If there are no more events to be received from the node, treat that
as an "end of file" situation, instead of as an error. In other words,
do a normal shutdown and let a system manager restart the CI broker if
need be.

Still handle actual errors when receiving node events as errors.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-11 12:45:33 +03:00
Lars Wirzenius e4573ec3fb feat: add a thread for adding events to queue
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-03 14:01:13 +03:00
Lars Wirzenius 77d08d3fcc feat: module to insert events into event queue
Make BrokerEvent de-serializable so that we can store them as JSON in
the database in the persistent event queue.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-02 19:55:42 +03:00