22 lines
558 B
Go
22 lines
558 B
Go
// Command alt-worker-schedule-check validates scheduled market data refresh
|
|
// config and prints stable dry-run evidence without starting the worker loop.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
"time"
|
|
|
|
"git.toki-labs.com/toki/alt/packages/domain/market"
|
|
"git.toki-labs.com/toki/alt/services/worker/internal/providers/kis"
|
|
"git.toki-labs.com/toki/alt/services/worker/internal/scheduler"
|
|
)
|
|
|
|
func main() {
|
|
os.Exit(scheduler.RunCheck(
|
|
os.Args[1:],
|
|
os.Stdout,
|
|
os.Stderr,
|
|
time.Now,
|
|
scheduler.CapabilityMap(market.ProviderCapability(kis.Capability())),
|
|
))
|
|
}
|