A twice-daily cron job (maybe_enqueue_pulse_digest) checks whether vibes exist for each slot and re-enqueues if not, with a 20-minute cooldown. When generate_vibes silently failed (due to a dspy.settings thread-affinity error), no vibes were ever created, so the cron re-enqueued every 20 minutes — producing a storm of failed tasks that all hit the same error.
The cascade:
dspy.settings firstdspy.settings.callbacks = ... → RuntimeErrorgenerate_vibes fails, caught by broad except Exception in run_pulse_digest → logged but edition still 'succeeds' with 0 vibesvibe_exists → None → re-enqueues after cooldownLessons:
dspy.context() (thread-local override) instead of dspy.settings.X = ... (global mutation with thread affinity) in any multi-threaded worker environment.except Exception around vibe synthesis was correct (edition ships without vibes), but the scheduler didn't account for this partial-success state.