package jobs

import (
	"context"
	"encoding/json"
	"log/slog"
)

// RegisterBuiltins registers standard placeholder handlers for worker jobs.
func RegisterBuiltins(runner *Runner) {
	runner.Register(KindImportDailyBars, func(ctx context.Context, payload json.RawMessage) error {
		slog.Info("executing built-in job: import daily bars", "payload_len", len(payload))
		return nil
	})

	runner.Register(KindNormalizeDailyBars, func(ctx context.Context, payload json.RawMessage) error {
		slog.Info("executing built-in job: normalize daily bars", "payload_len", len(payload))
		return nil
	})

	runner.Register(KindRunBacktest, func(ctx context.Context, payload json.RawMessage) error {
		slog.Info("executing built-in job: run backtest", "payload_len", len(payload))
		return nil
	})
}
