Skip to content

feat: Support run log redirection in TaskClient.call - #1252

Merged
Pijukatel merged 3 commits into
masterfrom
claude/intelligent-cerf-xz42y2
Nov 27, 2026
Merged

Pijukatel merged 3 commits into
masterfrom
claude/intelligent-cerf-xz42y2

Conversation

@Pijukatel

@Pijukatel Pijukatel commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

`TaskClient.call` accepts the same `logger` argument as `ActorClient.call` and redirects the run's log and status messages to it while waiting for the run to finish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ocuAL9oK2rVWgWZKeeVVg
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 24, 2026
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.66%. Comparing base (4b9b1a4) to head (69f31b1).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1252      +/-   ##
==========================================
- Coverage   95.68%   95.66%   -0.03%     
==========================================
  Files          65       65              
  Lines        6770     6798      +28     
==========================================
+ Hits         6478     6503      +25     
- Misses        292      295       +3     
Flag Coverage Δ
integration 90.64% <74.19%> (-0.10%) ⬇️
unit 91.39% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Pijukatel Pijukatel changed the title feat: redirect run logs in TaskClient.call feat: Add log redirection to TaskClient.call Nov 25, 2026
@Pijukatel
Pijukatel requested a review from vdusek November 25, 2026 08:19
@Pijukatel
Pijukatel marked this pull request as ready for review November 25, 2026 08:19
@Pijukatel
Pijukatel requested a review from szaganek as a code owner November 25, 2026 08:19
@vdusek
vdusek added this pull request to stack #1257 November 26, 2026 08:44
Comment thread tests/unit/test_logging.py Resolved
@vdusek vdusek changed the title feat: Add log redirection to TaskClient.call feat: Add logger argument to TaskClient.call for run log redirection Nov 27, 2026
@vdusek vdusek changed the title feat: Add logger argument to TaskClient.call for run log redirection feat: Support run log redirection in TaskClient.call Nov 27, 2026
`ActorClient.call` and `TaskClient.call` start the run before they set up log
redirection, which reads the run and its Actor. A failure there, for example a
token that may run a task but not read its Actor, made `call` raise and lose
the started run. It is now logged as a warning and the run is waited for
without redirection.

Also moves `_wait_with_logs` after the public methods, fixes the task `logger`
docstring, and adds task tests for `logger='default'` and `logger=None`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ocuAHA5qh4VqF6Ps7XR5p
@Pijukatel
Pijukatel requested a review from vdusek November 27, 2026 12:18

@vdusek vdusek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Pijukatel
Pijukatel merged commit 739f097 into master Nov 27, 2026
34 of 36 checks passed
@Pijukatel
Pijukatel deleted the claude/intelligent-cerf-xz42y2 branch November 27, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants