feat: use sqlite logstore (#514)

This commit is contained in:
Gareth
2024-10-12 11:26:22 -07:00
committed by GitHub
parent 5948c67652
commit 4d557a1146
22 changed files with 1080 additions and 896 deletions

View File

@@ -3,6 +3,7 @@ package tasks
import (
"context"
"errors"
"io"
"testing"
"time"
@@ -53,12 +54,7 @@ type TaskRunner interface {
// Logger returns the logger.
Logger(ctx context.Context) *zap.Logger
// LogrefWriter returns a writer that can be used to track streaming operation output.
LogrefWriter() (liveID string, w LogrefWriter, err error)
}
type LogrefWriter interface {
Write(data []byte) (int, error)
Close() (frozenID string, err error)
LogrefWriter() (id string, w io.WriteCloser, err error)
}
type TaskExecutor interface {
@@ -225,6 +221,6 @@ func (t *testTaskRunner) Logger(ctx context.Context) *zap.Logger {
return zap.L()
}
func (t *testTaskRunner) LogrefWriter() (liveID string, w LogrefWriter, err error) {
func (t *testTaskRunner) LogrefWriter() (id string, w io.WriteCloser, err error) {
panic("not implemented")
}