fix(cron): surface initial scheduler registration failures

This commit is contained in:
Gille
2026-08-07 02:25:58 -06:00
committed by kshitij
parent 261aef5268
commit f346458f29
16 changed files with 400 additions and 44 deletions
+2 -2
View File
@@ -206,12 +206,12 @@ def create_blueprint_job(
optional ``prompt`` becomes the task instruction. Delivery, model, and
toolsets carry through. Returns the created job dict.
"""
from cron.jobs import create_job
from cron.scheduler import create_job_with_scheduler_registration
job_spec = blueprint_to_job_spec(spec, name=name)
if origin is not None:
job_spec["origin"] = origin
return create_job(**job_spec)
return create_job_with_scheduler_registration(**job_spec)
def register_blueprint_suggestion(spec: BlueprintSpec) -> Optional[Dict[str, Any]]: