mirror of
https://github.com/coder/coder.git
synced 2026-06-03 13:08:25 +00:00
e4dc2d9418
This PR sets a constraint of 1MB on the provisioner job logs written to the database. This is consistent with the constraint we place on workspace agent logs: https://github.com/coder/coder/blob/4ac6be6d835dc36c242e35a26b584b784040bf28/coderd/database/dump.sql#L2030 It also adds a message printed to the front end about the provisioner log overflow, and updates the message printed to the front end when workspace startup logs exceed the max, as it was causing some customers to think their startup script had failed to run.
94 lines
3.2 KiB
Plaintext
94 lines
3.2 KiB
Plaintext
[
|
|
{
|
|
"id": "===========[workspace ID]===========",
|
|
"created_at": "====[timestamp]=====",
|
|
"updated_at": "====[timestamp]=====",
|
|
"owner_id": "==========[first user ID]===========",
|
|
"owner_name": "testuser",
|
|
"owner_avatar_url": "",
|
|
"organization_id": "===========[first org ID]===========",
|
|
"organization_name": "coder",
|
|
"template_id": "===========[template ID]============",
|
|
"template_name": "test-template",
|
|
"template_display_name": "",
|
|
"template_icon": "",
|
|
"template_allow_user_cancel_workspace_jobs": false,
|
|
"template_active_version_id": "============[version ID]============",
|
|
"template_require_active_version": false,
|
|
"template_use_classic_parameter_flow": false,
|
|
"latest_build": {
|
|
"id": "========[workspace build ID]========",
|
|
"created_at": "====[timestamp]=====",
|
|
"updated_at": "====[timestamp]=====",
|
|
"workspace_id": "===========[workspace ID]===========",
|
|
"workspace_name": "test-workspace",
|
|
"workspace_owner_id": "==========[first user ID]===========",
|
|
"workspace_owner_name": "testuser",
|
|
"template_version_id": "============[version ID]============",
|
|
"template_version_name": "===========[version name]===========",
|
|
"build_number": 1,
|
|
"transition": "start",
|
|
"initiator_id": "==========[first user ID]===========",
|
|
"initiator_name": "testuser",
|
|
"job": {
|
|
"id": "======[workspace build job ID]======",
|
|
"created_at": "====[timestamp]=====",
|
|
"started_at": "====[timestamp]=====",
|
|
"completed_at": "====[timestamp]=====",
|
|
"status": "succeeded",
|
|
"worker_id": "====[workspace build worker ID]=====",
|
|
"file_id": "=====[workspace build file ID]======",
|
|
"tags": {
|
|
"owner": "",
|
|
"scope": "organization"
|
|
},
|
|
"queue_position": 0,
|
|
"queue_size": 0,
|
|
"organization_id": "===========[first org ID]===========",
|
|
"input": {
|
|
"workspace_build_id": "========[workspace build ID]========"
|
|
},
|
|
"type": "workspace_build",
|
|
"metadata": {
|
|
"template_version_name": "",
|
|
"template_id": "00000000-0000-0000-0000-000000000000",
|
|
"template_name": "",
|
|
"template_display_name": "",
|
|
"template_icon": ""
|
|
},
|
|
"logs_overflowed": false
|
|
},
|
|
"reason": "initiator",
|
|
"resources": [],
|
|
"deadline": "====[timestamp]=====",
|
|
"max_deadline": null,
|
|
"status": "running",
|
|
"daily_cost": 0,
|
|
"matched_provisioners": {
|
|
"count": 0,
|
|
"available": 0,
|
|
"most_recently_seen": null
|
|
},
|
|
"template_version_preset_id": null,
|
|
"has_ai_task": false
|
|
},
|
|
"latest_app_status": null,
|
|
"outdated": false,
|
|
"name": "test-workspace",
|
|
"autostart_schedule": "CRON_TZ=US/Central 30 9 * * 1-5",
|
|
"ttl_ms": 28800000,
|
|
"last_used_at": "====[timestamp]=====",
|
|
"deleting_at": null,
|
|
"dormant_at": null,
|
|
"health": {
|
|
"healthy": true,
|
|
"failing_agents": []
|
|
},
|
|
"automatic_updates": "never",
|
|
"allow_renames": false,
|
|
"favorite": false,
|
|
"next_start_at": "====[timestamp]=====",
|
|
"is_prebuild": false
|
|
}
|
|
]
|