diff --git a/views/aggregate-worker-metadata.json b/views/aggregate-worker-metadata.json index a2a44eb2..ac12dad6 100644 --- a/views/aggregate-worker-metadata.json +++ b/views/aggregate-worker-metadata.json @@ -20,52 +20,83 @@ "working_dir": "{{ working_dir }}" }, "variables": { - "type": "object", "properties": { "name": { - "title": "Name", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, "description": "Name given to infrastructure created by a worker.", - "type": "string" + "title": "Name" }, "env": { - "title": "Environment Variables", - "description": "Environment variables to set when starting a flow run.", - "type": "object", "additionalProperties": { - "type": "string" - } + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": "Environment variables to set when starting a flow run.", + "title": "Environment Variables", + "type": "object" }, "labels": { - "title": "Labels", - "description": "Labels applied to infrastructure created by a worker.", - "type": "object", "additionalProperties": { "type": "string" - } + }, + "description": "Labels applied to infrastructure created by a worker.", + "title": "Labels", + "type": "object" }, "command": { - "title": "Command", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, "description": "The command to use when starting a flow run. In most cases, this should be left blank and the command will be automatically generated by the worker.", - "type": "string" + "title": "Command" }, "stream_output": { - "title": "Stream Output", - "description": "If enabled, workers will stream output from flow run processes to local standard output.", "default": true, + "description": "If enabled, workers will stream output from flow run processes to local standard output.", + "title": "Stream Output", "type": "boolean" }, "working_dir": { - "title": "Working Directory", + "anyOf": [ + { + "format": "path", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, "description": "If provided, workers will open flow run processes within the specified path as the working directory. Otherwise, a temporary directory will be created.", - "type": "string", - "format": "path" + "title": "Working Directory" } - } + }, + "type": "object" } }, "description": "Execute flow runs as subprocesses on a worker. Works well for local execution when first getting started.", "display_name": "Process", - "documentation_url": "https://docs.prefect.io/latest/api-ref/prefect/workers/process/", + "documentation_url": "https://docs.prefect.io/latest/get-started/quickstart", "install_command": "pip install prefect", "is_beta": false, "logo_url": "https://cdn.sanity.io/images/3ugk85nk/production/356e6766a91baf20e1d08bbe16e8b5aaef4d8643-48x48.png",