askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
scheduler_runs.json · 2.0 KB · 83 lines
| 1 | { |
| 2 | "name": "scheduler_runs", |
| 3 | "title": "Scheduler Runs", |
| 4 | "version": 1, |
| 5 | "storage": "append", |
| 6 | "description": "Run history for daemon-scheduled tasks -- one append-only row per execution, written best-effort by object_daemon.process_scheduler. The Flower lesson: a run's outcome must be a RECORD an operator can query, not a stdout line only ssh can reach (q9's auto-approve sat dead for years and this server's own scheduler pass sat disabled because run outcomes were invisible). result carries the target's return value (JSON, truncated); error/error_type carry the failure. Admin-read only (permissions/rules.json); the /scheduler page renders this plus the live task board from the scheduler trigger's state.", |
| 7 | "fields": [ |
| 8 | { |
| 9 | "name": "id" |
| 10 | }, |
| 11 | { |
| 12 | "name": "task_id", |
| 13 | "type": "text", |
| 14 | "label": "Task" |
| 15 | }, |
| 16 | { |
| 17 | "name": "object_id", |
| 18 | "type": "text", |
| 19 | "label": "Target Object" |
| 20 | }, |
| 21 | { |
| 22 | "name": "method", |
| 23 | "type": "text", |
| 24 | "label": "Method" |
| 25 | }, |
| 26 | { |
| 27 | "name": "ok", |
| 28 | "type": "boolean", |
| 29 | "label": "OK" |
| 30 | }, |
| 31 | { |
| 32 | "name": "started_at", |
| 33 | "type": "datetime", |
| 34 | "label": "Started" |
| 35 | }, |
| 36 | { |
| 37 | "name": "duration_ms", |
| 38 | "type": "integer", |
| 39 | "label": "Duration (ms)" |
| 40 | }, |
| 41 | { |
| 42 | "name": "result", |
| 43 | "type": "text", |
| 44 | "label": "Result", |
| 45 | "help": "The target object's return value as JSON, truncated to 2000 chars." |
| 46 | }, |
| 47 | { |
| 48 | "name": "error", |
| 49 | "type": "text", |
| 50 | "label": "Error" |
| 51 | }, |
| 52 | { |
| 53 | "name": "error_type", |
| 54 | "type": "text", |
| 55 | "label": "Error Type" |
| 56 | }, |
| 57 | { |
| 58 | "name": "owner_id", |
| 59 | "type": "text", |
| 60 | "label": "Owner" |
| 61 | }, |
| 62 | { |
| 63 | "name": "created_at", |
| 64 | "type": "datetime", |
| 65 | "label": "Created", |
| 66 | "read_only": true |
| 67 | } |
| 68 | ], |
| 69 | "views": { |
| 70 | "list_mode": "table", |
| 71 | "list_fields": [ |
| 72 | "task_id", |
| 73 | "object_id", |
| 74 | "ok", |
| 75 | "started_at", |
| 76 | "duration_ms" |
| 77 | ], |
| 78 | "filter_fields": [ |
| 79 | "task_id", |
| 80 | "ok" |
| 81 | ] |
| 82 | } |
| 83 | } |