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

feat(framework) Add SuperExec logcatcher #3584

Merged
merged 86 commits into from
Sep 19, 2024
Merged

Conversation

chongshenng
Copy link
Contributor

@chongshenng chongshenng commented Jun 11, 2024

Issue

Description

Logs from the subprocess that launches the ServerApp needs caught in the SuperExec service.

Related issues/PRs

The companion PR is the following.

Blocks:

Proposal

Explanation

The logging mechanism is split into two parts:

  • Capture stdout and stderr to memory
  • Stream logs from memory as the response to the client request

In-memory logs

Logstreams can be requested at any stage of a run via flwr log. Each call to StartRun starts log capturing for a run_id. Logs for a run_id are stored in self.runs[run_id].logs.

Checklist

  • Implement proposed change
  • Make CI checks pass
  • Ping maintainers on Slack (channel #contributions)

Any other comments?

@chongshenng chongshenng changed the title feat(framework) Add logcatcher to SuperExec feat(framework) Add logcatcher to SuperExec Jun 11, 2024
@chongshenng chongshenng mentioned this pull request Jun 11, 2024
3 tasks
@chongshenng chongshenng self-assigned this Jun 13, 2024
@chongshenng chongshenng marked this pull request as ready for review June 14, 2024 13:10
@chongshenng chongshenng changed the title feat(framework) Add logcatcher to SuperExec feat(framework) Add SuperExec logcatcher Jun 14, 2024
yan-gao-GY and others added 19 commits September 19, 2024 10:36
Co-authored-by: jafermarq <javier@flower.ai>
Co-authored-by: jafermarq <javier@flower.ai>
Co-authored-by: Daniel J. Beutel <daniel@flower.ai>
Co-authored-by: jafermarq <javier@flower.ai>
Co-authored-by: Heng Pan <pan@flower.ai>
Co-authored-by: Daniel J. Beutel <daniel@flower.ai>
…ow with `flwr run` (#3338)

Co-authored-by: Javier <jafermarq@users.noreply.github.com>
Co-authored-by: Charles Beauville <charles@flower.ai>
…Face with `flwr run` (#3341)

Co-authored-by: Javier <jafermarq@users.noreply.github.com>
Co-authored-by: jafermarq <javier@flower.ai>
Co-authored-by: Chong Shen Ng <chong.shen@flower.ai>
Signed-off-by: Robert Steiner <robert@flower.ai>
Co-authored-by: Flower <148336023+flwrmachine@users.noreply.github.com>
@danieljanes danieljanes merged commit ebb78ae into main Sep 19, 2024
32 checks passed
@danieljanes danieljanes deleted the add-superexec-logcatcher branch September 19, 2024 11:19
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.

10 participants