mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +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
|
||||||
|
}
|
@ -318,3 +318,23 @@ 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
|
type: string
|
||||||
}
|
}
|
||||||
working_dir {
|
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
|
type: string
|
||||||
}
|
}
|
||||||
requirements {
|
requirements {
|
||||||
description: "A JSON object containing requirements strings by key"
|
description: "A JSON object containing requirements strings by key"
|
||||||
type: object
|
type: object
|
||||||
}
|
}
|
||||||
|
diff {
|
||||||
|
description: "Uncommitted changes found in the repository when task was run"
|
||||||
|
type: string
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output {
|
output {
|
||||||
@ -137,7 +141,7 @@ _definitions {
|
|||||||
description: """Json object representing the ids of the labels in the model.
|
description: """Json object representing the ids of the labels in the model.
|
||||||
The keys are the layers' names and the values are the IDs.
|
The keys are the layers' names and the values are the IDs.
|
||||||
Not applicable for Register (Import) tasks.
|
Not applicable for Register (Import) tasks.
|
||||||
Mandatory for Training tasks[z]"""
|
Mandatory for Training tasks"""
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: { type: integer }
|
additionalProperties: { type: integer }
|
||||||
}
|
}
|
||||||
@ -157,6 +161,7 @@ _definitions {
|
|||||||
publishing
|
publishing
|
||||||
closed
|
closed
|
||||||
failed
|
failed
|
||||||
|
completed
|
||||||
unknown
|
unknown
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1009,6 +1014,7 @@ publish {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set_requirements {
|
set_requirements {
|
||||||
"2.1" {
|
"2.1" {
|
||||||
description: """Set the script requirements for a task"""
|
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