-
Notifications
You must be signed in to change notification settings - Fork 39
feat: Add StatusMessageWatcher
#793
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
Draft
Pijukatel
wants to merge
3
commits into
master
Choose a base branch
from
status-message-redirector
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StatusSessageWatcherStatusMessageWatcher
Pijukatel
commented
Nov 21, 2025
| "url": "https://github.com/apify/apify-client-js/issues" | ||
| }, | ||
| "homepage": "https://docs.apify.com/api/client/js/", | ||
| "files": [ |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for testing, revert before merging.
Contributor
Author
Pijukatel
commented
Nov 21, 2025
| * Helper class for redirecting Actor run status and status message to log. | ||
| */ | ||
| export class StatusMessageWatcher { | ||
| private static finalSleepTimeMs = 6000; |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two constants are for sure up for discussion.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Description
Add the option to log status and status messages of another Actor run. If such Actor run is also redirecting logs from another Actor run, then those logs can propagate all the way to the top through the
StreamedLog- deep redirection. If the Actor run from which we are redirecting status messages is not redirecting logs from its children, then the log and status redirection remains shallow - only from that Actor run.Example usage:
Actor.call - default
This will redirect logs by default. Example default redirected line:
Actor.call - custom Log
This will redirect logs using custom log and logger. Example default redirected line:
Actor.call - no log redirection
This will disable all log redirection (same as current behavior)
Actor.run - attaching to already running actor and redirecting statuses and status messages
A typical use case is redirecting statuses and status messages from an Actor that runs in standby.
Example actor with recursive redirection:
https://console.apify.com/actors/IcfIKTIvbmujMmovj/source
Issues
.actor().call()method to set the correct timeout, show the progress in status message, and stream logs #632StatusMessageWatcherapify-client-python#407