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

Feature/SK-669 | Store session id on status (event) and validation objects #528

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

niklastheman
Copy link
Contributor

  • Client status log stores session id
  • Validation objects stores session id

Copy link
Member

@Wrede Wrede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! see comment!

@@ -434,7 +434,7 @@ def _listen_to_task_stream(self):
if request.sender.role == fedn.COMBINER:
# Process training request
self._send_status("Received model update request.", log_level=fedn.Status.AUDIT,
type=fedn.StatusType.MODEL_UPDATE_REQUEST, request=request)
type=fedn.StatusType.MODEL_UPDATE_REQUEST, request=request, sesssion_id=request.session_id)
logger.info("Received model update request of type {} for model_id {}".format(request.type, request.model_id))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't you add the session_id in this log info as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that too. The way I see it, when a task stream is started, the session doesn't necessarily exists so I figured I skip it. If I'm wrong we can add it later.

@niklastheman niklastheman merged commit d5bcfba into master Feb 15, 2024
15 checks passed
@niklastheman niklastheman deleted the feature/SK-669 branch February 15, 2024 08:02
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.

2 participants