Skip to content

feat(generator): add a replaceable hook called after each generation phase - #1073

Open
jcristau wants to merge 1 commit into
taskcluster:mainfrom
jcristau:generator-phase-hook
Open

jcristau wants to merge 1 commit into
taskcluster:mainfrom
jcristau:generator-phase-hook

Conversation

@jcristau

@jcristau jcristau commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

taskgraph.generator.phase_finished(name, start, end) is called after each phase of graph generation with time.monotonic() values taken around it, so projects can profile generation by replacing it from their register function. name is None if the phase raised. The default logs the phase's duration at debug level.

Part of https://bugzilla.mozilla.org/show_bug.cgi?id=2079630

…phase

`taskgraph.generator.phase_finished(name, start, end)` is called after
each phase of graph generation with `time.monotonic()` values taken
around it, so projects can profile generation by replacing it from their
`register` function. `name` is None if the phase raised. The default
logs the phase's duration at debug level.

Part of https://bugzilla.mozilla.org/show_bug.cgi?id=2079630
@jcristau
jcristau requested a review from a team as a code owner October 8, 2026 10:57
@jcristau
jcristau requested a review from ahal October 8, 2026 10:57

This branch has not been deployed

No deployments
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.

1 participant