mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
Add external configuration defaults
This commit is contained in:
parent
8605186a97
commit
54e3a156c1
7
server/config/default/services/tasks.conf
Normal file
7
server/config/default/services/tasks.conf
Normal file
@ -0,0 +1,7 @@
|
||||
non_responsive_tasks_watchdog {
|
||||
# In-progress tasks older than this value in seconds will be stopped by the watchdog
|
||||
threshold_sec: 7200
|
||||
|
||||
# Watchdog will sleep for this number of seconds after each cycle
|
||||
watch_interval_sec: 900
|
||||
}
|
@ -317,4 +317,24 @@ edit_user {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fixed_users_mode {
|
||||
authorize: false
|
||||
"2.1" {
|
||||
description: """ Return fixed users mode status"""
|
||||
request {
|
||||
type: object
|
||||
additionalProperties: false
|
||||
}
|
||||
response {
|
||||
type: object
|
||||
properties {
|
||||
enabled {
|
||||
description: "Fixed users mode enabled"
|
||||
type: boolean
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -69,13 +69,17 @@ _definitions {
|
||||
type: string
|
||||
}
|
||||
working_dir {
|
||||
description: "Path to the folder from which to run the script Default - root folder of repository[f]"
|
||||
description: "Path to the folder from which to run the script Default - root folder of repository"
|
||||
type: string
|
||||
}
|
||||
requirements {
|
||||
description: "A JSON object containing requirements strings by key"
|
||||
type: object
|
||||
}
|
||||
diff {
|
||||
description: "Uncommitted changes found in the repository when task was run"
|
||||
type: string
|
||||
}
|
||||
}
|
||||
}
|
||||
output {
|
||||
@ -137,7 +141,7 @@ _definitions {
|
||||
description: """Json object representing the ids of the labels in the model.
|
||||
The keys are the layers' names and the values are the IDs.
|
||||
Not applicable for Register (Import) tasks.
|
||||
Mandatory for Training tasks[z]"""
|
||||
Mandatory for Training tasks"""
|
||||
type: object
|
||||
additionalProperties: { type: integer }
|
||||
}
|
||||
@ -157,6 +161,7 @@ _definitions {
|
||||
publishing
|
||||
closed
|
||||
failed
|
||||
completed
|
||||
unknown
|
||||
]
|
||||
}
|
||||
@ -1009,6 +1014,7 @@ publish {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
set_requirements {
|
||||
"2.1" {
|
||||
description: """Set the script requirements for a task"""
|
||||
@ -1046,3 +1052,55 @@ set_requirements {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
completed {
|
||||
"2.2" {
|
||||
description: "Signal a task has completed"
|
||||
request = {
|
||||
type: object
|
||||
required: [
|
||||
task
|
||||
]
|
||||
properties.force = ${_references.force_arg} {
|
||||
description: "If not true, call fails if the task status is not created/in_progress/published"
|
||||
}
|
||||
} ${_references.status_change_request}
|
||||
response {
|
||||
type: object
|
||||
properties {
|
||||
updated {
|
||||
description: "Number of tasks updated (0 or 1)"
|
||||
type: integer
|
||||
enum: [ 0, 1 ]
|
||||
}
|
||||
fields {
|
||||
description: "Updated fields names and values"
|
||||
type: object
|
||||
additionalProperties: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ping {
|
||||
"2.1" {
|
||||
description: """ Refresh the task's last update time"""
|
||||
request {
|
||||
type: object
|
||||
required: [
|
||||
task
|
||||
]
|
||||
properties {
|
||||
task {
|
||||
description: "Task ID"
|
||||
type: string
|
||||
}
|
||||
}
|
||||
}
|
||||
response {
|
||||
type: object
|
||||
additionalProperties: false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user