question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[workflow] log is not pushed to driver if run multiple times

See original GitHub issue
import ray
from ray import workflow
ray.init(address='auto')
workflow.init()

@workflow.step
def s():
    return 10


print(s.step().run())

Run the above script multiple times and only the first one will print the log correctly. Need to always push the log to the driver.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
iychengcommented, Apr 7, 2022

@lchu-ibm we don’t need to fix it in ray core layer since this is the behavior we’d like.

The thing here is that we need to redirect the log to the right driver by updating the logging library.

We don’t need to do this for most jobs. For workflow, we need to do this because it damages UX.

0reactions
lchu-ibmcommented, Apr 7, 2022

Even for non-detached actor, the same issue will be there. E.g. in the same example above, if the actor is not detached but script 1 is not exited, script 2 has the same issue of lost logs in the driver.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Github Actions Tricks I Wish I Knew Before I Started
Here are 7 tricks with github actions that changed my life (or at least my CI/CD pipeline). These tricks helped me create a...
Read more >
Workflow Best Practices - Support and Troubleshooting
Workflow Best Practices | Tips and Gotchas Things to Avoid Here's list of things to avoid when building a workflow: NEVER delete a...
Read more >
Monitor and manage real-time workflow processes
In this article. Monitoring real-time workflows and actions; Status of real-time workflow processes; Deleting process log rows; Next steps.
Read more >
Troubleshoot Dataflow errors - Google Cloud
When running in batch mode, bundles including a failing item are retried four times. The pipeline fails completely when a single bundle fails...
Read more >
Using workflow run logs - GitHub Docs
For more information about the Checks API, see "Checks." Note: Ensure that you only commit valid workflow files to your repository. If .github/workflows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found