Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Nyx
LarvaTagger.jl
Commits
92097614
Commit
92097614
authored
2 weeks ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
fix: frontend no longer crashes if backend is not available at startup
parent
509337a2
No related branches found
No related tags found
1 merge request
!25
Set of commits to be tagged v0.20.1
Pipeline
#154961
passed
2 weeks ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
recipes/release.sh
+1
-1
1 addition, 1 deletion
recipes/release.sh
src/REST/Client.jl
+1
-0
1 addition, 0 deletions
src/REST/Client.jl
src/backends.jl
+5
-1
5 additions, 1 deletion
src/backends.jl
with
7 additions
and
2 deletions
recipes/release.sh
+
1
−
1
View file @
92097614
...
@@ -14,7 +14,7 @@ docker=docker LARVATAGGER_IMAGE=flaur/larvatagger:$RELEASE-20230311 scripts/larv
...
@@ -14,7 +14,7 @@ docker=docker LARVATAGGER_IMAGE=flaur/larvatagger:$RELEASE-20230311 scripts/larv
docker tag flaur/larvatagger:
$RELEASE
-20230311
flaur/larvatagger:latest
docker tag flaur/larvatagger:
$RELEASE
-20230311
flaur/larvatagger:latest
docker build
-t
flaur/larvatagger:
$RELEASE
-bigfat
-f
recipes/Dockerfile.pasteurjanelia
--no-cache
.
docker build
-t
flaur/larvatagger:
$RELEASE
-bigfat
-f
recipes/Dockerfile.pasteurjanelia
--no-cache
.
test
/predict_and_retrain.sh
#
test/predict_and_retrain.sh
cat
<<
EOF
cat
<<
EOF
Next steps are:
Next steps are:
...
...
This diff is collapsed.
Click to expand it.
src/REST/Client.jl
+
1
−
0
View file @
92097614
...
@@ -219,6 +219,7 @@ end
...
@@ -219,6 +219,7 @@ end
function
listmodels
(
back
::
LTBackend
,
::
Val
{
true
})
function
listmodels
(
back
::
LTBackend
,
::
Val
{
true
})
map
(
back
.
active_tagging_backend
)
do
tagging_backend
map
(
back
.
active_tagging_backend
)
do
tagging_backend
models
=
OrderedDict
{
String
,
String
}[]
models
=
OrderedDict
{
String
,
String
}[]
isnothing
(
tagging_backend
)
&&
return
models
for
name
in
keys
(
back
.
taggers
[
tagging_backend
])
for
name
in
keys
(
back
.
taggers
[
tagging_backend
])
metadata
=
back
.
metadata
[
tagging_backend
][
:
models
][
name
]
metadata
=
back
.
metadata
[
tagging_backend
][
:
models
][
name
]
push!
(
models
,
OrderedDict
(
"name"
=>
name
,
push!
(
models
,
OrderedDict
(
"name"
=>
name
,
...
...
This diff is collapsed.
Click to expand it.
src/backends.jl
+
5
−
1
View file @
92097614
...
@@ -51,7 +51,11 @@ function getbackends(controller, location=nothing)
...
@@ -51,7 +51,11 @@ function getbackends(controller, location=nothing)
else
else
if
!
isnothing
(
location
)
&&
startswith
(
location
,
"http://"
)
if
!
isnothing
(
location
)
&&
startswith
(
location
,
"http://"
)
back
=
REST
.
Client
.
LTBackend
(
location
)
back
=
REST
.
Client
.
LTBackend
(
location
)
REST
.
Client
.
connect
(
back
;
preselect_tagger
=
true
)
try
REST
.
Client
.
connect
(
back
;
preselect_tagger
=
true
)
catch
@error
"Failed to connect to backend"
end
controller
[
:
backends
]
=
back
controller
[
:
backends
]
=
back
else
else
backends
=
Backends
(
controller
,
location
)
backends
=
Backends
(
controller
,
location
)
...
...
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