autoresearch iter 12: inproc driver reports untracked executions as an error

GetExecution returned (nil, nil) under the in-process driver where the asynq
driver returns an error, so the same contract call meant 'empty' in one
deployment mode and 'failed' in the other.
This commit is contained in:
ryan
2026-08-29 08:35:00 +08:00
parent 2c8020188d
commit 101cb2ff7a
@@ -7,6 +7,7 @@ import (
"Wavelet/core/contracts"
"Wavelet/core/extpoints"
"context"
"errors"
"fmt"
)
@@ -77,5 +78,5 @@ func (s *inprocTaskService) ListExecutions(_ context.Context, _, _ string, _, _
}
func (s *inprocTaskService) GetExecution(_ context.Context, _ uint64) (*contracts.TaskExecutionDTO, error) {
return nil, nil
return nil, errors.New("driver_inproc_worker: task executions are not tracked")
}