Skip to content

Commit

Permalink
fix: improve task lifecycles
Browse files Browse the repository at this point in the history
Even with this, The UI still throws an error because it is can be launched before the server is _completely_ ready. I'm not sure we can do much more. Just warn the users about it.
  • Loading branch information
IgnacioHeredia committed Sep 4, 2024
1 parent a5a30d4 commit efa9330
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions etc/tools/ai4os-cvat/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,6 @@ job "tool-cvat-${JOB_UUID}" {
}

task "main" {
lifecycle {
hook = "poststart"
sidecar = "true"
}
driver = "docker"
resources {
cores = 1
Expand Down Expand Up @@ -855,6 +851,12 @@ job "tool-cvat-${JOB_UUID}" {
}

task "ui" {

lifecycle {
hook = "poststart"
sidecar = "true"
}

driver = "docker"
config {
image = "${NOMAD_META_ui_image}:${NOMAD_META_cvat_version}${NOMAD_META_cvat_version_custom}"
Expand Down

0 comments on commit efa9330

Please sign in to comment.