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

Option to log progess and duration estimations #8820

Closed
3 tasks done
felix-ht opened this issue Mar 16, 2023 · 3 comments
Closed
3 tasks done

Option to log progess and duration estimations #8820

felix-ht opened this issue Mar 16, 2023 · 3 comments
Assignees
Labels
enhancement An improvement of an existing feature needs:design Blocked by a need for an implementation outline orchestration Related to Orchestration features status:accepted We may work on this; we will accept work from external contributors

Comments

@felix-ht
Copy link

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar request and didn't find it.
  • I searched the Prefect documentation for this feature.

Prefect Version

2.x

Describe the current behavior

Some long running tasks have a clear estimation of their progess as well as their remaining duration. Curretnly the only way to track this is to conntect the logger to say tqdm. This tends to spam the logs, as long as one doesn't throttle the logging.

Describe the proposed behavior

It would be great if the progess could be logged to prefect so the gui could show how long the current task will still take.

@task
def foo():
    logger =  get_run_progress_logger()
    for i in logger(range(100), total=100):
        sleep(1)

Example Use

No response

Additional context

No response

@felix-ht felix-ht added enhancement An improvement of an existing feature status:triage labels Mar 16, 2023
@billpalombi
Copy link
Contributor

Thanks for submitting this issue @felix-ht! We have a feature in the works that will support this use case. It should ship in a few weeks. I'll circle back once its released.

@billpalombi billpalombi self-assigned this Mar 16, 2023
@billpalombi billpalombi added status:accepted We may work on this; we will accept work from external contributors and removed status:triage labels Mar 16, 2023
@github-actions github-actions bot added the status:in-progress Someone is working on this, check-in here before beginning new work label Mar 16, 2023
@billpalombi billpalombi added orchestration Related to Orchestration features and removed status:in-progress Someone is working on this, check-in here before beginning new work labels Mar 16, 2023
@zanieb zanieb added the needs:design Blocked by a need for an implementation outline label Mar 16, 2023
@hubsbendang
Copy link

Any update on this?

@billpalombi
Copy link
Contributor

@hubsbendang, this proved to be a greater design challenge than we anticipated. While we do want to address this need, we don't have a timeline for doing so.

@WillRaphaelson WillRaphaelson closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature needs:design Blocked by a need for an implementation outline orchestration Related to Orchestration features status:accepted We may work on this; we will accept work from external contributors
Projects
None yet
Development

No branches or pull requests

5 participants