mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user