fix(platform): Remove un-runnable agents from schedule (#11374)

Currently when an agent fails validation during a scheduled run, we
raise an error then try again, regardless of why.

This change removed the agent schedule and notifies the user 

### Changes 🏗️

- add schedule_id to the GraphExecutionJobArgs
- add agent_name to the GraphExecutionJobArgs
- Delete schedule on GraphValidationError
- Notify the user with a message that include the agent name

### Checklist 📋

#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
  <!-- Put your test plan here: -->
  - [x] I have ensured the scheduler tests work with these changes
This commit is contained in:
Swifty
2025-11-17 16:24:40 +01:00
committed by GitHub
parent 8b3a741f60
commit a66219fc1f
4 changed files with 60 additions and 9 deletions

View File

@@ -6018,9 +6018,17 @@
},
"GraphExecutionJobInfo": {
"properties": {
"schedule_id": {
"anyOf": [{ "type": "string" }, { "type": "null" }],
"title": "Schedule Id"
},
"user_id": { "type": "string", "title": "User Id" },
"graph_id": { "type": "string", "title": "Graph Id" },
"graph_version": { "type": "integer", "title": "Graph Version" },
"agent_name": {
"anyOf": [{ "type": "string" }, { "type": "null" }],
"title": "Agent Name"
},
"cron": { "type": "string", "title": "Cron" },
"input_data": {
"additionalProperties": true,