Bind legacy schedule workspaces only at execution startup

This commit is contained in:
2026-10-21 00:55:39 +01:00
parent 4d8b34939d
commit 8c3f116190
4 changed files with 211 additions and 12 deletions
+10
View File
@@ -84,6 +84,16 @@ func newRunner(ctx context.Context, s *pipeline.Store) (*runner, error) {
if err := s.AcquireRunnerLock(); err != nil {
return nil, err
}
// Store.Open is also used by offline tools, whose cwd is not execution
// authority. Bind imported legacy defaults only here, before serving requests
// or starting scheduler workers, and never rebind an explicit saved folder.
workspace, err := pipeline.ResolveRunWorkspace("", false)
if err != nil {
return nil, err
}
if err = s.BindLegacyScheduleWorkspace(ctx, workspace); err != nil {
return nil, err
}
sessions, err := s.ActiveSessionOwners(ctx)
if err != nil {
return nil, err