You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Handle target errors gracefully and prevent cron from getting stuck (#777)
* fix(target): properly propagate errors from LoadImages and Remove methods
Changes the Target interface to return errors from LoadImages() and Remove()
methods, preventing panics when operations fail. Updates all implementations
(dtrack, git, oci, configmap) and call sites to properly handle and log errors.
Fixes panic in dtrack target when client initialization fails due to
connection issues (internal/target/dtrack/dtrack_target.go:240).
* fix(daemon): prevent cron service from getting stuck after panic
Moves the running flag from global variable to CronService struct field
protected by sync.Mutex. Uses defer to ensure the flag is always reset
even when panics occur in runBackgroundService, preventing the cron
routine from staying stuck in running state and never executing again.
0 commit comments