8000 Make reporting more metrics for tasks possible by mateka · Pull Request #3343 · spotify/luigi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make reporting more metrics for tasks possible #3343

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

Merged
merged 2 commits into from
May 16, 2025

Conversation

mateka
Copy link
Contributor
@mateka mateka commented Feb 14, 2025

I would like to collect and monitor more metrics from luigi graphs runs.

Description

I added method for passing tasks' run statistics from TaskContext into scheduler and metrics collector.

Motivation and Context

Example and motivation is in Issue #3342.

Have you tested this? If so, how?

I tested in on example graph and it worked.

@@ -66,6 +66,9 @@ def handle_task_disabled(self, task, config):
def handle_task_done(self, task):
pass

def handle_task_statistics(self, task, statistics):
pass
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a common implementation that can be introduced here? Or within the Datadog and/or Prometheus implementations of MetricsCollector?

If not, and this method needs to remain as an optionally-implemented method, i would ask at a minimum for there to be appropriately informative and discoverable documentation written surrounding its intended use. (I don't believe there are currently any docs/ content around metrics collectors).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method is entirely optional. I had not provided any documentation and tests yet, because I was hoping to gather some feedback in #3342 as you suggested in my earlier pull request (#3333 (comment)).

I will gladly add tests and documentation if you are convinced this change is small enough.

@dlstadther
Copy link
Collaborator

@mateka , a few PRs were merged today which alter the build and testing process for Luigi, We tried to update this branch with those modification. However, the CI trigger didn't appear to actually kickoff the Github Action workflow.

Would you be able to make an adjustment to this branch and push a change so that we can see the Github Action behavior?

@mateka mateka force-pushed the task-metadata branch 3 times, most recently from 97976c5 to bbf7cb0 Compare April 26, 2025 16:04
@mateka
Copy link
Contributor Author
mateka commented Apr 26, 2025

@mateka , a few PRs were merged today which alter the build and testing process for Luigi, We tried to update this branch with those modification. However, the CI trigger didn't appear to actually kickoff the Github Action workflow.

Would you be able to make an adjustment to this branch and push a change so that we can see the Github Action behavior?

I pushed new version of this branch: rebased on current master with cherry-picked commit and it works now. I also added some documentation and test for new feature.

Copy link
Collaborator
@dlstadther dlstadther left a comment

Choose a reason for hiding this comment

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

Thanks for the documentation and rebase!

@dlstadther dlstadther merged commit e61898c into spotify:master May 16, 2025
39 checks passed
@mateka mateka deleted the task-metadata branch May 20, 2025 07:29
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.

2 participants
0