Skip to content

Worker logs

Ewoud Ruighaver requested to merge worker-logs into development

Description

Easily accessible worker logs are now a thing. The workers now send their logs with each ping request from the core. They store their logs since the last ping. The core stores each worker's logs and exposes them on the /api/v1/worker/{uid}/logs endpoint. Still needs some work on the UI, tho.

Additions

  • Added the ListAppender that stores logs since the last ListAppender.getMessages() call.

Changes

  • The WorkerConnection class now stores a worker's logs, also allowing them to be appended.
  • A worker now sends the logs stored since their last ping to the core.

Test and Review

To be filled in by the reviewers

  • All of the methods are commented to expectation

  • The methods are tested to satisfaction

  • There are no unnecessary files present in the MR

  • The continuous integration has no problems with the MR

  • The MR is filled in as requested (including labels, milestones, and reviewers)

  • The documentation is up-to-date

  • All nullable parameters are marked as such

Edited by Luc Everse

Merge request reports