Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Create events table for live logs and worker name #96

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

francesconazzaro
Copy link
Collaborator

@francesconazzaro francesconazzaro commented Jan 29, 2024

This PR adds events table to the broker database to store events related to a request. The table has 5 columns:

  • event_id: id of the event
  • event_type: type of the event. For example worker_name, user_visible_log, log etc...
  • request_uid: the request uid of the request, this is a foreign key to system_request.request_uid.
  • message: the content of the event.
  • timestamp: creation timestamp of the event.

Pros and cons for the worker name info (see this PR).
Pros:

  • the broker code workflow remains unchanged

Cons:

  • the information of the worker is outside the system_request table and is harder to access by this line

This PR has to be merged with ecmwf-projects/cads-worker#32.

@francesconazzaro francesconazzaro changed the title [WIP] create events table [WIP] Create events table for live logs and worker name Jan 29, 2024
@francesconazzaro francesconazzaro self-assigned this Jan 29, 2024
@francesconazzaro francesconazzaro merged commit 955d4f0 into main Jan 30, 2024
8 of 9 checks passed
@francesconazzaro francesconazzaro deleted the create-events-table branch January 30, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant