From 6930462c72be90bbd75488b32df22736f5f20c50 Mon Sep 17 00:00:00 2001 From: Arun Mathai Date: Wed, 1 Jan 2025 21:47:13 +0530 Subject: [PATCH] feat(devbox): Link devbox to devbox image doctype --- press/fixtures/agent_job_type.json | 4160 ++++++++++++++---------- press/press/doctype/devbox/devbox.json | 5 +- press/press/doctype/devbox/devbox.py | 6 +- 3 files changed, 2415 insertions(+), 1756 deletions(-) diff --git a/press/fixtures/agent_job_type.json b/press/fixtures/agent_job_type.json index dd65569569..89d2959e3c 100644 --- a/press/fixtures/agent_job_type.json +++ b/press/fixtures/agent_job_type.json @@ -1,1754 +1,2408 @@ [ - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-08-20 12:32:56.100866", - "name": "Update In Place", - "request_method": "POST", - "request_path": "/bench/{bench}/update_inplace", - "steps": [ - { - "step_name": "Pull App Changes" - }, - { - "step_name": "Migrate Sites" - }, - { - "step_name": "Rebuild Bench Assets" - }, - { - "step_name": "Commit Container Changes" - }, - { - "step_name": "Bench Restart" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.228754", - "name": "Rename Upstream", - "request_method": "POST", - "request_path": "/proxy/upstreams/{ip}/rename", - "steps": [ - { - "step_name": "Rename Upstream Directory" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2024-08-09 10:07:51.319214", - "name": "Rename Site", - "request_method": "POST", - "request_path": "benches/{site.bench}/sites/{site.name}/rename", - "steps": [ - { - "step_name": "Enable Maintenance Mode" - }, - { - "step_name": "Wait for Enqueued Jobs" - }, - { - "step_name": "Update Site Configuration" - }, - { - "step_name": "Rename Site" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - }, - { - "step_name": "Disable Maintenance Mode" - }, - { - "step_name": "Enable Scheduler" - }, - { - "step_name": "Create User" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.549528", - "name": "Recover Failed Site Migration", - "request_method": null, - "request_path": null, - "steps": [ - { - "step_name": "Move Site" - }, - { - "step_name": "Restore Touched Tables" - }, - { - "step_name": "Disable Maintenance Mode" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.927111", - "name": "Add Domain", - "request_method": "POST", - "request_path": "benches/{bench}/sites/{site}/domains", - "steps": [ - { - "step_name": "Update Site Configuration" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.946695", - "name": "Remove Domain", - "request_method": "DELETE", - "request_path": "benches/{bench}/sites/{site}/domains/{domain}", - "steps": [ - { - "step_name": "Update Site Configuration" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.762138", - "name": "Update Site Pull", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/update/pull", - "steps": [ - { - "step_name": "Enable Maintenance Mode" - }, - { - "step_name": "Wait for Enqueued Jobs" - }, - { - "step_name": "Move Site" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Bench Setup NGINX Target" - }, - { - "step_name": "Reload NGINX" - }, - { - "step_name": "Disable Maintenance Mode" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.585210", - "name": "Update Site Migrate", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/update/migrate", - "steps": [ - { - "step_name": "Enable Maintenance Mode" - }, - { - "step_name": "Wait for Enqueued Jobs" - }, - { - "step_name": "Clear Backup Directory" - }, - { - "step_name": "Backup Site Tables" - }, - { - "step_name": "Move Site" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Bench Setup NGINX Target" - }, - { - "step_name": "Reload NGINX" - }, - { - "step_name": "Run App Specific Scripts" - }, - { - "step_name": "Migrate Site" - }, - { - "step_name": "Disable Maintenance Mode" - }, - { - "step_name": "Build Search Index" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.646447", - "name": "Add Host to Proxy", - "request_method": "POST", - "request_path": "/proxy/hosts", - "steps": [ - { - "step_name": "Add Host to Proxy" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.671517", - "name": "Add Code Server to Upstream", - "request_method": "POST", - "request_path": "/proxy/upstreams/{upstream}/sites", - "steps": [ - { - "step_name": "Add Site File to Upstream Directory" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.651948", - "name": "Remove Code Server from Upstream", - "request_method": "POST", - "request_path": "/proxy/upstreams/{upstream}/sites", - "steps": [ - { - "step_name": "Remove Site File from Upstream Directory" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.724970", - "name": "Setup Code Server", - "request_method": "POST", - "request_path": "benches/{bench}/codeserver", - "steps": [ - { - "step_name": "Create Code Server Config" - }, - { - "step_name": "Start Code Server" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.707766", - "name": "Start Code Server", - "request_method": "POST", - "request_path": "benches/{bench}/codeserver/start", - "steps": [ - { - "step_name": "Start Code Server" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.743617", - "name": "Stop Code Server", - "request_method": "POST", - "request_path": "benches/{bench}/codeserver/stop", - "steps": [ - { - "step_name": "Stop Code Server" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.690936", - "name": "Archive Code Server", - "request_method": "POST", - "request_path": "benches/{bench}/codeserver/archive", - "steps": [ - { - "step_name": "Remove Code Server" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.607088", - "name": "Add Upstream to Proxy", - "request_method": "POST", - "request_path": "/proxy/upstreams", - "steps": [ - { - "step_name": "Add Upstream Directory" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.677444", - "name": "Install App on Site", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/apps", - "steps": [ - { - "step_name": "Install App on Site" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.839292", - "name": "New Site from Backup", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/restore", - "steps": [ - { - "step_name": "Download Backup Files" - }, - { - "step_name": "New Site" - }, - { - "step_name": "Update Site Configuration" - }, - { - "step_name": "Restore Site" - }, - { - "step_name": "Delete Downloaded Backup Files" - }, - { - "step_name": "Uninstall Unavailable Apps" - }, - { - "step_name": "Migrate Site" - }, - { - "step_name": "Set Administrator Password" - }, - { - "step_name": "Enable Scheduler" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.690831", - "name": "Reinstall Site", - "request_method": "POST", - "request_path": "benches/{bench}/sites/{site}/reinstall", - "steps": [ - { - "step_name": "Reinstall Site" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.706871", - "name": "Update Site Status", - "request_method": "POST", - "request_path": "/proxy/upstreams/{upstream}/sites/{site}/status", - "steps": [ - { - "step_name": "Update Site File" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.740351", - "name": "Uninstall App from Site", - "request_method": "DELETE", - "request_path": "/benches/{bench}/sites/{site}/apps", - "steps": [ - { - "step_name": "Uninstall App from Site" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.805097", - "name": "Recover Failed Site Pull", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/update/pull/recover", - "steps": [ - { - "step_name": "Move Site" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Bench Setup NGINX Target" - }, - { - "step_name": "Reload NGINX" - }, - { - "step_name": "Disable Maintenance Mode" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.786058", - "name": "Recover Failed Site Update", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/update/recover", - "steps": [ - { - "step_name": "Disable Maintenance Mode" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.625189", - "name": "Recover Failed Site Migrate", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/update/migrate/recover", - "steps": [ - { - "step_name": "Move Site" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Bench Setup NGINX Target" - }, - { - "step_name": "Reload NGINX" - }, - { - "step_name": "Restore Touched Tables" - }, - { - "step_name": "Run App Specific Scripts" - }, - { - "step_name": "Disable Maintenance Mode" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.893005", - "name": "Remove Host from Proxy", - "request_method": "DELETE", - "request_path": "/proxy/hosts/{host}", - "steps": [ - { - "step_name": "Remove Host from Proxy" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.911153", - "name": "Migrate Site", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/migrate", - "steps": [ - { - "step_name": "Migrate Site" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.963183", - "name": "Fetch Sites Info", - "request_method": "POST", - "request_path": "/benches/{bench}/info", - "steps": [ - { - "step_name": "Fetch Sites Info" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.000340", - "name": "Setup Redirects on Hosts", - "request_method": "POST", - "request_path": "/proxy/hosts/redirects", - "steps": [ - { - "step_name": "Remove Redirect on Host" - }, - { - "step_name": "Setup Redirect on Host" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.979580", - "name": "Remove Redirects on Hosts", - "request_method": "DELETE", - "request_path": "/proxy/hosts/redirects", - "steps": [ - { - "step_name": "Remove Redirect on Host" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.100535", - "name": "Rename Site on Upstream", - "request_method": "POST", - "request_path": "/proxy/upstreams/{upstream}/sites/{site}/rename", - "steps": [ - { - "step_name": "Rename Site File in Upstream Directory" - }, - { - "step_name": "Rename Host Directory" - }, - { - "step_name": "Rename Site in Host Directory" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.131920", - "name": "Add Wildcard Hosts to Proxy", - "request_method": "POST", - "request_path": "/proxy/wildcards", - "steps": [ - { - "step_name": "Add Wildcard Hosts to Proxy" - }, - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.180358", - "name": "Setup ERPNext", - "request_method": "POST", - "request_path": "/benches/{site.bench}/sites/{site.name}/erpnext", - "steps": [ - { - "step_name": "Create User" - }, - { - "step_name": "Update ERPNext Configuration" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.157390", - "name": "Clear Cache", - "request_method": "DELETE", - "request_path": "/benches/{bench}/sites/{site}/cache", - "steps": [ - { - "step_name": "Clear Cache" - }, - { - "step_name": "Clear Website Cache" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.203468", - "name": "Restore Site Tables", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/update/migrate/restore", - "steps": [ - { - "step_name": "Restore Site Tables" - }, - { - "step_name": "Disable Maintenance Mode" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.283667", - "name": "Add User to Proxy", - "request_method": "POST", - "request_path": "/ssh/users", - "steps": [ - { - "step_name": "Add User to Proxy" - }, - { - "step_name": "Add Certificate to User" - }, - { - "step_name": "Add Principal to User" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.308026", - "name": "Remove User from Proxy", - "request_method": "DELETE", - "request_path": "/ssh/users/{user}", - "steps": [ - { - "step_name": "Remove User from Proxy" - }, - { - "step_name": "Remove Principal from User" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.327716", - "name": "Add User to ProxySQL", - "request_method": "POST", - "request_path": "/proxysql/users", - "steps": [ - { - "step_name": "Add User to ProxySQL" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.345276", - "name": "Remove User from ProxySQL", - "request_method": "DELETE", - "request_path": "/proxysql/users/{username}", - "steps": [ - { - "step_name": "Remove User from ProxySQL" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.362722", - "name": "Create Minio User", - "request_method": "POST", - "request_path": "/minio/create", - "steps": [ - { - "step_name": "Create Minio User" - }, - { - "step_name": "Create Minio Policy" - }, - { - "step_name": "Add Minio Policy" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.379874", - "name": "Remove Minio User", - "request_method": "POST", - "request_path": "/minio/remove", - "steps": [ - { - "step_name": "Remove Minio User" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.392780", - "name": "Enable Minio User", - "request_method": "POST", - "request_path": "/minio/update", - "steps": [ - { - "step_name": "Enable Minio User" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.405690", - "name": "Disable Minio User", - "request_method": "POST", - "request_path": "/minio/update", - "steps": [ - { - "step_name": "Disable Minio User" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.256524", - "name": "Cleanup Unused Files", - "request_method": "POST", - "request_path": "server/cleanup", - "steps": [ - { - "step_name": "Remove Archived Benches" - }, - { - "step_name": "Remove Temporary Files" - }, - { - "step_name": "Remove Unused Docker Artefacts" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.446023", - "name": "Add Backend to ProxySQL", - "request_method": "POST", - "request_path": "/proxysql/backends", - "steps": [ - { - "step_name": "Add Backend to ProxySQL" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.419313", - "name": "Update Saas Plan", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/update/saas", - "steps": [ - { - "step_name": "Update Saas Plan" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.502147", - "name": "Run After Migrate Steps", - "request_method": "POST", - "request_path": "benches/{bench}/sites/{site}/run_after_migrate_steps", - "steps": [ - { - "step_name": "Set Administrator Password" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - }, - { - "step_name": "Disable Maintenance Mode" - }, - { - "step_name": "Enable Scheduler" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.531987", - "name": "Move Site to Bench", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/move_to_bench", - "steps": [ - { - "step_name": "Enable Maintenance Mode" - }, - { - "step_name": "Wait for Enqueued Jobs" - }, - { - "step_name": "Move Site" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Bench Setup NGINX Target" - }, - { - "step_name": "Reload NGINX" - }, - { - "step_name": "Migrate Site" - }, - { - "step_name": "Disable Maintenance Mode" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.556954", - "name": "Reset Site Usage", - "request_method": "DELETE", - "request_path": "benches/{bench}/sites/{site}/usage", - "steps": [ - { - "step_name": "Reset Site Usage" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.759939", - "name": "Reload NGINX Job", - "request_method": "POST", - "request_path": "/proxy/reload", - "steps": [ - { - "step_name": "Generate NGINX Configuration" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.725087", - "name": "Backup Site", - "request_method": null, - "request_path": null, - "steps": [ - { - "step_name": "Backup Site" - }, - { - "step_name": "Upload Site Backup to S3" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.432717", - "name": "Bench Restart", - "request_method": "POST", - "request_path": "/benches/{bench}/restart", - "steps": [ - { - "step_name": "Bench Restart" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.568610", - "name": "Archive Bench", - "request_method": "POST", - "request_path": "/benches/{bench}/archive", - "steps": [ - { - "step_name": "Bench Disable Production" - }, - { - "step_name": "Move Bench to Archived Directory" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.023648", - "name": "New Bench", - "request_method": "POST", - "request_path": "/benches", - "steps": [ - { - "step_name": "Initialize Bench" - }, - { - "step_name": "Update Bench Configuration" - }, - { - "step_name": "Deploy Bench" - }, - { - "step_name": "Bench Setup NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.845251", - "name": "Force Update Bench Limits", - "request_method": "POST", - "request_path": "benches/{bench}/limit", - "steps": [ - { - "step_name": "Stop Bench" - }, - { - "step_name": "Update Bench Memory Limits" - }, - { - "step_name": "Start Bench" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.822202", - "name": "Update Bench Configuration", - "request_method": "POST", - "request_path": "/benches/{bench}/config", - "steps": [ - { - "step_name": "Update Bench Configuration" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Generate Docker Compose File" - }, - { - "step_name": "Update Bench Memory Limits" - }, - { - "step_name": "Deploy Bench" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.803361", - "name": "Rebuild Bench Assets", - "request_method": "POST", - "request_path": "benches/{bench}/rebuild", - "steps": [ - { - "step_name": "Rebuild Bench Assets" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.861985", - "name": "Optimize Tables", - "request_method": "POST", - "request_path": "benches/{bench}/sites/{site}/optimize", - "steps": [ - { - "step_name": "Optimize Tables" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2024-02-22 20:01:05.606166", - "name": "Docker Image Build", - "request_method": "POST", - "request_path": "builder/build", - "steps": [ - { - "step_name": "Docker Image Build" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2024-02-27 13:51:17.142316", - "name": "Patch App", - "request_method": "POST", - "request_path": "/bench/{bench}/patch/{app}", - "steps": [ - { - "step_name": "Git Apply" - }, - { - "step_name": "Rebuild Bench Assets" - }, - { - "step_name": "Bench Restart" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2024-03-19 11:40:26.237476", - "name": "Call Bench Supervisorctl", - "request_method": "POST", - "request_path": "/benches/{bench}/supervisorctl", - "steps": [ - { - "step_name": "Run Supervisorctl Command" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2024-03-26 10:28:39.750285", - "name": "Run Remote Builder", - "request_method": "POST", - "request_path": "/builder/build", - "steps": [ - { - "step_name": "Build Image" - }, - { - "step_name": "Push Docker Image" - }, - { - "step_name": "Cleanup Context" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-07-11 12:04:37.550558", - "name": "Add Database Index", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/add-database-index", - "steps": [ - { - "step_name": "Add Database Index With Bench Command" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:19.470276", - "name": "Restore Site", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/restore", - "steps": [ - { - "step_name": "Download Backup Files" - }, - { - "step_name": "Restore Site" - }, - { - "step_name": "Checksum of Downloaded Backup Files" - }, - { - "step_name": "Delete Downloaded Backup Files" - }, - { - "step_name": "Uninstall Unavailable Apps" - }, - { - "step_name": "Migrate Site" - }, - { - "step_name": "Set Administrator Password" - }, - { - "step_name": "Enable Scheduler" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-07-18 17:49:54.294402", - "name": "Column Statistics", - "request_method": "POST", - "request_path": "/database/column-stats", - "steps": [ - { - "step_name": "Fetch Column Statistics" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-08-09 12:03:58.145567", - "name": "Complete Setup Wizard", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/complete-setup-wizard", - "steps": [ - { - "step_name": "Complete Setup Wizard" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-06-11 19:43:45.877056", - "name": "Create User", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/create-user", - "steps": [ - { - "step_name": "Create User" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2024-08-09 10:10:41.301700", - "name": "New Site", - "request_method": "POST", - "request_path": "/benches/{bench}/sites", - "steps": [ - { - "step_name": "New Site" - }, - { - "step_name": "Install Apps" - }, - { - "step_name": "Update Site Configuration" - }, - { - "step_name": "Enable Scheduler" - }, - { - "step_name": "Create User" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.663533", - "name": "Update Site Configuration", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/config", - "steps": [ - { - "step_name": "Update Site Configuration" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.510770", - "name": "Archive Site", - "request_method": null, - "request_path": null, - "steps": [ - { - "step_name": "Archive Site" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-09-10 12:11:38.844112", - "name": "Recover Update In Place", - "request_method": "POST", - "request_path": "/bench/{bench}/recover_update_inplace", - "steps": [ - { - "step_name": "Enable Maintenance Mode" - }, - { - "step_name": "Deploy Bench" - }, - { - "step_name": "Bench Setup NGINX" - }, - { - "step_name": "Recover Sites" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-08-20 12:51:05.293373", - "name": "Update Bench In Place", - "request_method": "POST", - "request_path": "/bench/{bench}/update_inplace", - "steps": [ - { - "step_name": "Pull App Changes" - }, - { - "step_name": "Migrate Sites" - }, - { - "step_name": "Rebuild Bench Assets" - }, - { - "step_name": "Commit Container Changes" - }, - { - "step_name": "Bench Restart" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-09-11 13:28:32.120581", - "name": "Ping Job", - "request_method": "POST", - "request_path": "ping_job", - "steps": [ - { - "step_name": "Ping Step" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 1, - "modified": "2024-10-28 14:49:19.894247", - "name": "Fetch Database Table Schema", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/database/schema", - "steps": [ - { - "step_name": "Fetch Database Table Schema" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 1, - "modified": "2024-11-04 14:49:18.592247", - "name": "Create Database User", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/database/users", - "steps": [ - { - "step_name": "Create Database User" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 1, - "modified": "2024-11-04 14:49:18.592247", - "name": "Remove Database User", - "request_method": "DELETE", - "request_path": "/benches/{bench}/sites/{site}/database/users/{username}", - "steps": [ - { - "step_name": "Remove Database User" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 1, - "modified": "2024-11-04 14:49:18.592247", - "name": "Modify Database User Permissions", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/database/users/{db_user}/permissions", - "steps": [ - { - "step_name": "Modify Database User Permissions" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 1, - "modified": "2024-10-28 14:49:19.894247", - "name": "Fetch Database Table Schema", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/database/schema", - "steps": [ - { - "step_name": "Fetch Database Table Schema" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-12-19 17:21:14.136650", - "name": "Analyze Slow Queries", - "request_method": "POST", - "request_path": "/benches/{bench}/sites/{site}/database/analyze-slow-queries", - "steps": [ - { - "step_name": "Analyze Slow Queries" - } - ] - }, - { - "disabled_auto_retry": 0, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 6, - "modified": "2023-11-06 07:28:18.587094", - "name": "Remove Site from Upstream", - "request_method": "DELETE", - "request_path": "/proxy/upstreams/{upstream}/sites/{site}", - "steps": [ - { - "parent": "Remove Site from Upstream", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Remove Site File from Upstream Directory" - }, - { - "parent": "Remove Site from Upstream", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Generate NGINX Configuration" - }, - { - "parent": "Remove Site from Upstream", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Reload NGINX" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-12-11 18:08:04.411669", - "name": "New Devbox", - "request_method": "POST", - "request_path": "/devboxes", - "steps": [ - { - "parent": "New Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Initialize Devbox" - }, - { - "parent": "New Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Create Devbox Database Volume" - }, - { - "parent": "New Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Create Devbox Home Volume" - }, - { - "parent": "New Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Run Devbox" - }, - { - "parent": "New Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Devbox Setup NGINX" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-12-17 16:27:51.442551", - "name": "Destroy Devbox", - "request_method": "POST", - "request_path": "/devboxes/{devbox.name}/destroy", - "steps": [ - { - "parent": "Destroy Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Stop Devbox" - }, - { - "parent": "Destroy Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Delete Devbox Directory" - }, - { - "parent": "Destroy Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Delete Devbox Database Volume" - }, - { - "parent": "Destroy Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Delete Devbox Home Volume" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-10-21 11:18:53.122319", - "name": "Start Devbox", - "request_method": "POST", - "request_path": "devboxes/{devbox.name}/{devbox.websockify_port}/start", - "steps": [ - { - "parent": "Start Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Run Devbox" - } - ] - }, - { - "disabled_auto_retry": 1, - "docstatus": 0, - "doctype": "Agent Job Type", - "max_retry_count": 3, - "modified": "2024-10-23 20:30:22.356484", - "name": "Stop Devbox", - "request_method": "POST", - "request_path": "devboxes/{devbox.name}/stop", - "steps": [ - { - "parent": "Stop Devbox", - "parentfield": "steps", - "parenttype": "Agent Job Type", - "step_name": "Stop Devbox" - } - ] - } -] \ No newline at end of file + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.228754", + "name": "Rename Upstream", + "request_method": "POST", + "request_path": "/proxy/upstreams/{ip}/rename", + "steps": [ + { + "parent": "Rename Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Rename Upstream Directory" + }, + { + "parent": "Rename Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Rename Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2024-08-09 10:07:51.319214", + "name": "Rename Site", + "request_method": "POST", + "request_path": "benches/{site.bench}/sites/{site.name}/rename", + "steps": [ + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Maintenance Mode" + }, + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Wait for Enqueued Jobs" + }, + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Site Configuration" + }, + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Rename Site" + }, + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + }, + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + }, + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Scheduler" + }, + { + "parent": "Rename Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create User" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.549528", + "name": "Recover Failed Site Migration", + "request_method": null, + "request_path": null, + "steps": [ + { + "parent": "Recover Failed Site Migration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Move Site" + }, + { + "parent": "Recover Failed Site Migration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Restore Touched Tables" + }, + { + "parent": "Recover Failed Site Migration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.927111", + "name": "Add Domain", + "request_method": "POST", + "request_path": "benches/{bench}/sites/{site}/domains", + "steps": [ + { + "parent": "Add Domain", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Site Configuration" + }, + { + "parent": "Add Domain", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Add Domain", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.946695", + "name": "Remove Domain", + "request_method": "DELETE", + "request_path": "benches/{bench}/sites/{site}/domains/{domain}", + "steps": [ + { + "parent": "Remove Domain", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Site Configuration" + }, + { + "parent": "Remove Domain", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Remove Domain", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.762138", + "name": "Update Site Pull", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/update/pull", + "steps": [ + { + "parent": "Update Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Maintenance Mode" + }, + { + "parent": "Update Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Wait for Enqueued Jobs" + }, + { + "parent": "Update Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Move Site" + }, + { + "parent": "Update Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Update Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX Target" + }, + { + "parent": "Update Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + }, + { + "parent": "Update Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.585210", + "name": "Update Site Migrate", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/update/migrate", + "steps": [ + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Maintenance Mode" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Wait for Enqueued Jobs" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Clear Backup Directory" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Backup Site Tables" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Move Site" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX Target" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Run App Specific Scripts" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Migrate Site" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + }, + { + "parent": "Update Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Build Search Index" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.646447", + "name": "Add Host to Proxy", + "request_method": "POST", + "request_path": "/proxy/hosts", + "steps": [ + { + "parent": "Add Host to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Host to Proxy" + }, + { + "parent": "Add Host to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Add Host to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.671517", + "name": "Add Code Server to Upstream", + "request_method": "POST", + "request_path": "/proxy/upstreams/{upstream}/sites", + "steps": [ + { + "parent": "Add Code Server to Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Site File to Upstream Directory" + }, + { + "parent": "Add Code Server to Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Add Code Server to Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.651948", + "name": "Remove Code Server from Upstream", + "request_method": "POST", + "request_path": "/proxy/upstreams/{upstream}/sites", + "steps": [ + { + "parent": "Remove Code Server from Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Site File from Upstream Directory" + }, + { + "parent": "Remove Code Server from Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Remove Code Server from Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.724970", + "name": "Setup Code Server", + "request_method": "POST", + "request_path": "benches/{bench}/codeserver", + "steps": [ + { + "parent": "Setup Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create Code Server Config" + }, + { + "parent": "Setup Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Start Code Server" + }, + { + "parent": "Setup Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Setup Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.707766", + "name": "Start Code Server", + "request_method": "POST", + "request_path": "benches/{bench}/codeserver/start", + "steps": [ + { + "parent": "Start Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Start Code Server" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.743617", + "name": "Stop Code Server", + "request_method": "POST", + "request_path": "benches/{bench}/codeserver/stop", + "steps": [ + { + "parent": "Stop Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Stop Code Server" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.690936", + "name": "Archive Code Server", + "request_method": "POST", + "request_path": "benches/{bench}/codeserver/archive", + "steps": [ + { + "parent": "Archive Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Code Server" + }, + { + "parent": "Archive Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Archive Code Server", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.607088", + "name": "Add Upstream to Proxy", + "request_method": "POST", + "request_path": "/proxy/upstreams", + "steps": [ + { + "parent": "Add Upstream to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Upstream Directory" + }, + { + "parent": "Add Upstream to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Add Upstream to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.677444", + "name": "Install App on Site", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/apps", + "steps": [ + { + "parent": "Install App on Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Install App on Site" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.839292", + "name": "New Site from Backup", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/restore", + "steps": [ + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Download Backup Files" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "New Site" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Site Configuration" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Restore Site" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Delete Downloaded Backup Files" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Uninstall Unavailable Apps" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Migrate Site" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Set Administrator Password" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Scheduler" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "New Site from Backup", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.690831", + "name": "Reinstall Site", + "request_method": "POST", + "request_path": "benches/{bench}/sites/{site}/reinstall", + "steps": [ + { + "parent": "Reinstall Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reinstall Site" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.706871", + "name": "Update Site Status", + "request_method": "POST", + "request_path": "/proxy/upstreams/{upstream}/sites/{site}/status", + "steps": [ + { + "parent": "Update Site Status", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Site File" + }, + { + "parent": "Update Site Status", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Update Site Status", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.740351", + "name": "Uninstall App from Site", + "request_method": "DELETE", + "request_path": "/benches/{bench}/sites/{site}/apps", + "steps": [ + { + "parent": "Uninstall App from Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Uninstall App from Site" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.805097", + "name": "Recover Failed Site Pull", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/update/pull/recover", + "steps": [ + { + "parent": "Recover Failed Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Move Site" + }, + { + "parent": "Recover Failed Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Recover Failed Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX Target" + }, + { + "parent": "Recover Failed Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + }, + { + "parent": "Recover Failed Site Pull", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.786058", + "name": "Recover Failed Site Update", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/update/recover", + "steps": [ + { + "parent": "Recover Failed Site Update", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.625189", + "name": "Recover Failed Site Migrate", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/update/migrate/recover", + "steps": [ + { + "parent": "Recover Failed Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Move Site" + }, + { + "parent": "Recover Failed Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Recover Failed Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX Target" + }, + { + "parent": "Recover Failed Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + }, + { + "parent": "Recover Failed Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Restore Touched Tables" + }, + { + "parent": "Recover Failed Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Run App Specific Scripts" + }, + { + "parent": "Recover Failed Site Migrate", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.893005", + "name": "Remove Host from Proxy", + "request_method": "DELETE", + "request_path": "/proxy/hosts/{host}", + "steps": [ + { + "parent": "Remove Host from Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Host from Proxy" + }, + { + "parent": "Remove Host from Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Remove Host from Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.911153", + "name": "Migrate Site", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/migrate", + "steps": [ + { + "parent": "Migrate Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Migrate Site" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.963183", + "name": "Fetch Sites Info", + "request_method": "POST", + "request_path": "/benches/{bench}/info", + "steps": [ + { + "parent": "Fetch Sites Info", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Fetch Sites Info" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.000340", + "name": "Setup Redirects on Hosts", + "request_method": "POST", + "request_path": "/proxy/hosts/redirects", + "steps": [ + { + "parent": "Setup Redirects on Hosts", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Redirect on Host" + }, + { + "parent": "Setup Redirects on Hosts", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Setup Redirect on Host" + }, + { + "parent": "Setup Redirects on Hosts", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Setup Redirects on Hosts", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.979580", + "name": "Remove Redirects on Hosts", + "request_method": "DELETE", + "request_path": "/proxy/hosts/redirects", + "steps": [ + { + "parent": "Remove Redirects on Hosts", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Redirect on Host" + }, + { + "parent": "Remove Redirects on Hosts", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Remove Redirects on Hosts", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.100535", + "name": "Rename Site on Upstream", + "request_method": "POST", + "request_path": "/proxy/upstreams/{upstream}/sites/{site}/rename", + "steps": [ + { + "parent": "Rename Site on Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Rename Site File in Upstream Directory" + }, + { + "parent": "Rename Site on Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Rename Host Directory" + }, + { + "parent": "Rename Site on Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Rename Site in Host Directory" + }, + { + "parent": "Rename Site on Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Rename Site on Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.131920", + "name": "Add Wildcard Hosts to Proxy", + "request_method": "POST", + "request_path": "/proxy/wildcards", + "steps": [ + { + "parent": "Add Wildcard Hosts to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Wildcard Hosts to Proxy" + }, + { + "parent": "Add Wildcard Hosts to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Add Wildcard Hosts to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.180358", + "name": "Setup ERPNext", + "request_method": "POST", + "request_path": "/benches/{site.bench}/sites/{site.name}/erpnext", + "steps": [ + { + "parent": "Setup ERPNext", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create User" + }, + { + "parent": "Setup ERPNext", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update ERPNext Configuration" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.157390", + "name": "Clear Cache", + "request_method": "DELETE", + "request_path": "/benches/{bench}/sites/{site}/cache", + "steps": [ + { + "parent": "Clear Cache", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Clear Cache" + }, + { + "parent": "Clear Cache", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Clear Website Cache" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.203468", + "name": "Restore Site Tables", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/update/migrate/restore", + "steps": [ + { + "parent": "Restore Site Tables", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Restore Site Tables" + }, + { + "parent": "Restore Site Tables", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.283667", + "name": "Add User to Proxy", + "request_method": "POST", + "request_path": "/ssh/users", + "steps": [ + { + "parent": "Add User to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add User to Proxy" + }, + { + "parent": "Add User to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Certificate to User" + }, + { + "parent": "Add User to Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Principal to User" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.308026", + "name": "Remove User from Proxy", + "request_method": "DELETE", + "request_path": "/ssh/users/{user}", + "steps": [ + { + "parent": "Remove User from Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove User from Proxy" + }, + { + "parent": "Remove User from Proxy", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Principal from User" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.327716", + "name": "Add User to ProxySQL", + "request_method": "POST", + "request_path": "/proxysql/users", + "steps": [ + { + "parent": "Add User to ProxySQL", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add User to ProxySQL" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.345276", + "name": "Remove User from ProxySQL", + "request_method": "DELETE", + "request_path": "/proxysql/users/{username}", + "steps": [ + { + "parent": "Remove User from ProxySQL", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove User from ProxySQL" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.362722", + "name": "Create Minio User", + "request_method": "POST", + "request_path": "/minio/create", + "steps": [ + { + "parent": "Create Minio User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create Minio User" + }, + { + "parent": "Create Minio User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create Minio Policy" + }, + { + "parent": "Create Minio User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Minio Policy" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.379874", + "name": "Remove Minio User", + "request_method": "POST", + "request_path": "/minio/remove", + "steps": [ + { + "parent": "Remove Minio User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Minio User" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.392780", + "name": "Enable Minio User", + "request_method": "POST", + "request_path": "/minio/update", + "steps": [ + { + "parent": "Enable Minio User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Minio User" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.405690", + "name": "Disable Minio User", + "request_method": "POST", + "request_path": "/minio/update", + "steps": [ + { + "parent": "Disable Minio User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Minio User" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.256524", + "name": "Cleanup Unused Files", + "request_method": "POST", + "request_path": "server/cleanup", + "steps": [ + { + "parent": "Cleanup Unused Files", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Archived Benches" + }, + { + "parent": "Cleanup Unused Files", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Temporary Files" + }, + { + "parent": "Cleanup Unused Files", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Unused Docker Artefacts" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.446023", + "name": "Add Backend to ProxySQL", + "request_method": "POST", + "request_path": "/proxysql/backends", + "steps": [ + { + "parent": "Add Backend to ProxySQL", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Backend to ProxySQL" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.419313", + "name": "Update Saas Plan", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/update/saas", + "steps": [ + { + "parent": "Update Saas Plan", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Saas Plan" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.502147", + "name": "Run After Migrate Steps", + "request_method": "POST", + "request_path": "benches/{bench}/sites/{site}/run_after_migrate_steps", + "steps": [ + { + "parent": "Run After Migrate Steps", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Set Administrator Password" + }, + { + "parent": "Run After Migrate Steps", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Run After Migrate Steps", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + }, + { + "parent": "Run After Migrate Steps", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + }, + { + "parent": "Run After Migrate Steps", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Scheduler" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.531987", + "name": "Move Site to Bench", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/move_to_bench", + "steps": [ + { + "parent": "Move Site to Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Maintenance Mode" + }, + { + "parent": "Move Site to Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Wait for Enqueued Jobs" + }, + { + "parent": "Move Site to Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Move Site" + }, + { + "parent": "Move Site to Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Move Site to Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX Target" + }, + { + "parent": "Move Site to Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + }, + { + "parent": "Move Site to Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Migrate Site" + }, + { + "parent": "Move Site to Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Disable Maintenance Mode" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.556954", + "name": "Reset Site Usage", + "request_method": "DELETE", + "request_path": "benches/{bench}/sites/{site}/usage", + "steps": [ + { + "parent": "Reset Site Usage", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reset Site Usage" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.759939", + "name": "Reload NGINX Job", + "request_method": "POST", + "request_path": "/proxy/reload", + "steps": [ + { + "parent": "Reload NGINX Job", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Reload NGINX Job", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.725087", + "name": "Backup Site", + "request_method": null, + "request_path": null, + "steps": [ + { + "parent": "Backup Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Backup Site" + }, + { + "parent": "Backup Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Upload Site Backup to S3" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.432717", + "name": "Bench Restart", + "request_method": "POST", + "request_path": "/benches/{bench}/restart", + "steps": [ + { + "parent": "Bench Restart", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Restart" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.568610", + "name": "Archive Bench", + "request_method": "POST", + "request_path": "/benches/{bench}/archive", + "steps": [ + { + "parent": "Archive Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Disable Production" + }, + { + "parent": "Archive Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Move Bench to Archived Directory" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.023648", + "name": "New Bench", + "request_method": "POST", + "request_path": "/benches", + "steps": [ + { + "parent": "New Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Initialize Bench" + }, + { + "parent": "New Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Bench Configuration" + }, + { + "parent": "New Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Deploy Bench" + }, + { + "parent": "New Bench", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.845251", + "name": "Force Update Bench Limits", + "request_method": "POST", + "request_path": "benches/{bench}/limit", + "steps": [ + { + "parent": "Force Update Bench Limits", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Stop Bench" + }, + { + "parent": "Force Update Bench Limits", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Bench Memory Limits" + }, + { + "parent": "Force Update Bench Limits", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Start Bench" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.822202", + "name": "Update Bench Configuration", + "request_method": "POST", + "request_path": "/benches/{bench}/config", + "steps": [ + { + "parent": "Update Bench Configuration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Bench Configuration" + }, + { + "parent": "Update Bench Configuration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Update Bench Configuration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate Docker Compose File" + }, + { + "parent": "Update Bench Configuration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Bench Memory Limits" + }, + { + "parent": "Update Bench Configuration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Deploy Bench" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.803361", + "name": "Rebuild Bench Assets", + "request_method": "POST", + "request_path": "benches/{bench}/rebuild", + "steps": [ + { + "parent": "Rebuild Bench Assets", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Rebuild Bench Assets" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.861985", + "name": "Optimize Tables", + "request_method": "POST", + "request_path": "benches/{bench}/sites/{site}/optimize", + "steps": [ + { + "parent": "Optimize Tables", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Optimize Tables" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2024-02-22 20:01:05.606166", + "name": "Docker Image Build", + "request_method": "POST", + "request_path": "builder/build", + "steps": [ + { + "parent": "Docker Image Build", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Docker Image Build" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2024-02-27 13:51:17.142316", + "name": "Patch App", + "request_method": "POST", + "request_path": "/bench/{bench}/patch/{app}", + "steps": [ + { + "parent": "Patch App", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Git Apply" + }, + { + "parent": "Patch App", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Rebuild Bench Assets" + }, + { + "parent": "Patch App", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Restart" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2024-03-19 11:40:26.237476", + "name": "Call Bench Supervisorctl", + "request_method": "POST", + "request_path": "/benches/{bench}/supervisorctl", + "steps": [ + { + "parent": "Call Bench Supervisorctl", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Run Supervisorctl Command" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2024-03-26 10:28:39.750285", + "name": "Run Remote Builder", + "request_method": "POST", + "request_path": "/builder/build", + "steps": [ + { + "parent": "Run Remote Builder", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Build Image" + }, + { + "parent": "Run Remote Builder", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Push Docker Image" + }, + { + "parent": "Run Remote Builder", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Cleanup Context" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-07-11 12:04:37.550558", + "name": "Add Database Index", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/add-database-index", + "steps": [ + { + "parent": "Add Database Index", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Database Index With Bench Command" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:19.470276", + "name": "Restore Site", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/restore", + "steps": [ + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Download Backup Files" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Restore Site" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Checksum of Downloaded Backup Files" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Delete Downloaded Backup Files" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Uninstall Unavailable Apps" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Migrate Site" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Set Administrator Password" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Scheduler" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Restore Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-07-18 17:49:54.294402", + "name": "Column Statistics", + "request_method": "POST", + "request_path": "/database/column-stats", + "steps": [ + { + "parent": "Column Statistics", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Fetch Column Statistics" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-08-09 12:03:58.145567", + "name": "Complete Setup Wizard", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/complete-setup-wizard", + "steps": [ + { + "parent": "Complete Setup Wizard", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Complete Setup Wizard" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-06-11 19:43:45.877056", + "name": "Create User", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/create-user", + "steps": [ + { + "parent": "Create User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create User" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2024-08-09 10:10:41.301700", + "name": "New Site", + "request_method": "POST", + "request_path": "/benches/{bench}/sites", + "steps": [ + { + "parent": "New Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "New Site" + }, + { + "parent": "New Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Install Apps" + }, + { + "parent": "New Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Site Configuration" + }, + { + "parent": "New Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Scheduler" + }, + { + "parent": "New Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create User" + }, + { + "parent": "New Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "New Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.626647", + "name": "Add Site to Upstream", + "request_method": "POST", + "request_path": "/proxy/upstreams/{upstream}/sites", + "steps": [ + { + "parent": "Add Site to Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Add Site File to Upstream Directory" + }, + { + "parent": "Add Site to Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Add Site to Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.663533", + "name": "Update Site Configuration", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/config", + "steps": [ + { + "parent": "Update Site Configuration", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Update Site Configuration" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.587094", + "name": "Remove Site from Upstream", + "request_method": "DELETE", + "request_path": "/proxy/upstreams/{upstream}/sites/{site}", + "steps": [ + { + "parent": "Remove Site from Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Site File from Upstream Directory" + }, + { + "parent": "Remove Site from Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Generate NGINX Configuration" + }, + { + "parent": "Remove Site from Upstream", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 0, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 6, + "modified": "2023-11-06 07:28:18.510770", + "name": "Archive Site", + "request_method": null, + "request_path": null, + "steps": [ + { + "parent": "Archive Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Archive Site" + }, + { + "parent": "Archive Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Archive Site", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Reload NGINX" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-09-10 12:11:38.844112", + "name": "Recover Update In Place", + "request_method": "POST", + "request_path": "/bench/{bench}/recover_update_inplace", + "steps": [ + { + "parent": "Recover Update In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Enable Maintenance Mode" + }, + { + "parent": "Recover Update In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Deploy Bench" + }, + { + "parent": "Recover Update In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Setup NGINX" + }, + { + "parent": "Recover Update In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Recover Sites" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-09-11 13:28:32.120581", + "name": "Ping Job", + "request_method": "POST", + "request_path": "ping_job", + "steps": [ + { + "parent": "Ping Job", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Ping Step" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-08-20 12:51:05.293373", + "name": "Update Bench In Place", + "request_method": "POST", + "request_path": "/bench/{bench}/update_inplace", + "steps": [ + { + "parent": "Update Bench In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Pull App Changes" + }, + { + "parent": "Update Bench In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Migrate Sites" + }, + { + "parent": "Update Bench In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Rebuild Bench Assets" + }, + { + "parent": "Update Bench In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Commit Container Changes" + }, + { + "parent": "Update Bench In Place", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Bench Restart" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 1, + "modified": "2024-10-28 14:49:19.894247", + "name": "Fetch Database Table Schema", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/database/schema", + "steps": [ + { + "parent": "Fetch Database Table Schema", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Fetch Database Table Schema" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 1, + "modified": "2024-11-04 14:49:18.592247", + "name": "Create Database User", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/database/users", + "steps": [ + { + "parent": "Create Database User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create Database User" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 1, + "modified": "2024-11-04 14:49:18.592247", + "name": "Remove Database User", + "request_method": "DELETE", + "request_path": "/benches/{bench}/sites/{site}/database/users/{username}", + "steps": [ + { + "parent": "Remove Database User", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Remove Database User" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 1, + "modified": "2024-11-04 14:49:18.592247", + "name": "Modify Database User Permissions", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/database/users/{db_user}/permissions", + "steps": [ + { + "parent": "Modify Database User Permissions", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Modify Database User Permissions" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 1, + "modified": "2024-10-28 14:49:19.894247", + "name": "Fetch Database Table Schema", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/database/schema", + "steps": [ + { + "step_name": "Fetch Database Table Schema" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-12-19 17:21:14.136650", + "name": "Analyze Slow Queries", + "request_method": "POST", + "request_path": "/benches/{bench}/sites/{site}/database/analyze-slow-queries", + "steps": [ + { + "step_name": "Analyze Slow Queries" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-12-11 18:08:04.411669", + "name": "New Devbox", + "request_method": "POST", + "request_path": "/devboxes", + "steps": [ + { + "parent": "New Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Initialize Devbox" + }, + { + "parent": "New Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create Devbox Database Volume" + }, + { + "parent": "New Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Create Devbox Home Volume" + }, + { + "parent": "New Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Run Devbox" + }, + { + "parent": "New Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Devbox Setup NGINX" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-12-17 16:27:51.442551", + "name": "Destroy Devbox", + "request_method": "POST", + "request_path": "/devboxes/{devbox.name}/destroy", + "steps": [ + { + "parent": "Destroy Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Stop Devbox" + }, + { + "parent": "Destroy Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Delete Devbox Directory" + }, + { + "parent": "Destroy Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Delete Devbox Database Volume" + }, + { + "parent": "Destroy Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Delete Devbox Home Volume" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-10-21 11:18:53.122319", + "name": "Start Devbox", + "request_method": "POST", + "request_path": "devboxes/{devbox.name}/{devbox.websockify_port}/start", + "steps": [ + { + "parent": "Start Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Run Devbox" + } + ] + }, + { + "disabled_auto_retry": 1, + "docstatus": 0, + "doctype": "Agent Job Type", + "max_retry_count": 3, + "modified": "2024-10-23 20:30:22.356484", + "name": "Stop Devbox", + "request_method": "POST", + "request_path": "devboxes/{devbox.name}/stop", + "steps": [ + { + "parent": "Stop Devbox", + "parentfield": "steps", + "parenttype": "Agent Job Type", + "step_name": "Stop Devbox" + } + ] + } + ] \ No newline at end of file diff --git a/press/press/doctype/devbox/devbox.json b/press/press/doctype/devbox/devbox.json index 5f93370cd9..55294d7106 100644 --- a/press/press/doctype/devbox/devbox.json +++ b/press/press/doctype/devbox/devbox.json @@ -165,7 +165,8 @@ "fieldname": "docker_image", "fieldtype": "Link", "label": "Docker Image", - "options": "Devbox Image" + "options": "Devbox Image", + "reqd": 1 } ], "index_web_pages_for_search": 1, @@ -176,7 +177,7 @@ "link_fieldname": "devbox" } ], - "modified": "2025-01-01 14:33:54.040552", + "modified": "2025-01-01 20:27:02.458051", "modified_by": "Administrator", "module": "Press", "name": "Devbox", diff --git a/press/press/doctype/devbox/devbox.py b/press/press/doctype/devbox/devbox.py index 210558054d..e6dbca1e93 100644 --- a/press/press/doctype/devbox/devbox.py +++ b/press/press/doctype/devbox/devbox.py @@ -32,7 +32,7 @@ class Devbox(Document): codeserver_port: DF.Int container_id: DF.Data | None database_volume_size: DF.Data | None - docker_image: DF.Link | None + docker_image: DF.Link domain: DF.Link | None home_volume_size: DF.Data | None initialized: DF.Check @@ -114,10 +114,12 @@ def initialize_devbox(self): ) devbox.save() server_agent = Agent(server_type="Server", server=devbox.server) + image_reference = frappe.db.get_value("Devbox Image", devbox.docker_image, "image_reference") server_agent.create_agent_job( "New Devbox", path="devboxes", data={ + "devbox_image_reference": image_reference, "devbox_name": devbox.name, "vnc_password": devbox.vnc_password, "codeserver_password": devbox.codeserver_password, @@ -141,10 +143,12 @@ def initialize_devbox(self): def start_devbox(self): devbox = self server_agent = Agent(server_type="Server", server=devbox.server) + image_reference = frappe.db.get_value("Devbox Image", devbox.docker_image, "image_reference") server_agent.create_agent_job( "Start Devbox", path=f"devboxes/{devbox.name}/start", data={ + "devbox_image_reference": image_reference, "vnc_password": devbox.vnc_password, "codeserver_password": devbox.codeserver_password, },