You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template: add RunOnFirstRender option to change_script
Add a RunOnFirstRender field to the ChangeScript configuration that
allows template change_script to fire after the initial template
render, not only on subsequent re-renders.
When enabled, the template manager waits for the task to reach
the running state after unblocking, then executes the configured
scripts. This is useful for initialization tasks that need to run
once the first template content is available.
Replace the runFirstRenderScripts polling goroutine with a
RunFirstRenderScripts public method that is called from the
template hook Poststart handler. The task runner framework
guarantees Poststart fires once the task reaches running state,
so the polling loop is unnecessary.
Also adds TestTaskTemplateManager_FirstRenderScript covering the
new code path.
Fixes#27429
0 commit comments