-
Notifications
You must be signed in to change notification settings - Fork 19
Feature: Worker type selection and base job template configuration in worker pool create form #1173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…brary into workers-field
✅ Deploy Preview for prefect-ui-library ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
…r the base job template
Co-authored-by: Nicholas Brown <znicholasbrown@gmail.com>
Co-authored-by: pleek91 <craig@prefect.io>
Co-authored-by: pleek91 <craig@prefect.io>
Feature: Adds display of base job configuration details for work pool
Feature: Update work pool edit form to allow updates to the default values for the base job template
const schema = computed<Schema>(() => mapper.map('SchemaResponse', baseJobConfigs.value.variables ?? {}, 'Schema')) | ||
const parameters = ref() | ||
|
||
const testSchema = computed<Schema>(() => { | ||
return { ...schema.value, type: 'object' } | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@desertaxle just calling out that this testSchema
was for debugging. I couldn't figure out why the schema wasn't rendering and turned out to be because the schema fields component was expecting the object
type. Not sure if that's a bug in the schemes themselves being used here or if the component should know that anything with properties
is an object
.
Summary
Adds the ability to define the type for a work pool and the default values for a work pool's base job template when creating a work pool. The available worker types and default base job templates are retrieved from the collection registry and the
variables
section is used to render a schema-based form. The values entered in the form are used to update thedefault
key for each property in thevariables
section of the default base job template and the full schema is saved to the work pool via the API.Screenshot of form for the
Process
worker typeAdditional changes to be addressed in subsequent PRs: