Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Workers
Base Worker
Commits
19675ca5
Commit
19675ca5
authored
1 year ago
by
Manon Blanco
Committed by
Yoann Schneider
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Update model_usage to an enum
parent
826d964b
No related branches found
Branches containing commit
No related tags found
1 merge request
!471
Update model_usage to an enum
Pipeline
#148461
passed
1 year ago
Stage: release
Changes
2
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/contents/workers/yaml.md
+10
-1
10 additions, 1 deletion
docs/contents/workers/yaml.md
tests/conftest.py
+2
-2
2 additions, 2 deletions
tests/conftest.py
with
12 additions
and
3 deletions
docs/contents/workers/yaml.md
+
10
−
1
View file @
19675ca5
...
...
@@ -80,7 +80,16 @@ include:
: This worker does not support GPUs. It may run on a host that has a GPU, but it will ignore it.
`model_usage`
: Boolean. Whether or not this worker requires a model version to run. Defaults to `false`.
: Whether or not this worker requires a model version to run. Defaults to `disabled`. May take one of the following values:
`required`
: This worker requires a model version, and will only be run on processes with a model.
`supported`
: This worker supports a model version, but may run on any processes, including those without model.
`disabled`
: This worker does not support model version. It may run on a process that has a model, but it will ignore it.
`docker`
: Regroups Docker-related configuration attributes:
...
...
This diff is collapsed.
Click to expand it.
tests/conftest.py
+
2
−
2
View file @
19675ca5
...
...
@@ -139,7 +139,7 @@ def _mock_worker_run_api(responses):
"
docker_image_name
"
:
None
,
"
state
"
:
"
created
"
,
"
gpu_usage
"
:
"
disabled
"
,
"
model_usage
"
:
False
,
"
model_usage
"
:
"
disabled
"
,
"
worker
"
:
{
"
id
"
:
"
deadbeef-1234-5678-1234-worker
"
,
"
name
"
:
"
Fake worker
"
,
...
...
@@ -206,7 +206,7 @@ def _mock_worker_run_no_revision_api(responses):
"
docker_image_name
"
:
None
,
"
state
"
:
"
created
"
,
"
gpu_usage
"
:
"
disabled
"
,
"
model_usage
"
:
False
,
"
model_usage
"
:
"
disabled
"
,
"
worker
"
:
{
"
id
"
:
"
deadbeef-1234-5678-1234-worker
"
,
"
name
"
:
"
Fake worker
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment