Skip to content

Commit c14a170

Browse files
author
Marco Brandizi (RRes-Roth)
committed
fix(rres endpoints): fix poaceae-sample-rres1 config
1 parent 1792fe7 commit c14a170

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

rres-endpoints/config/datasets/poaceae-sample-rres1-cfg.sh

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,26 @@
22
# As said elsewhere, this is done in dataset config files, to keep track of which Neo4j
33
# was used for each dataset
44

5-
version_no="$(echo "$KETL_DATASET_VERSION" | sed -E s/'^([0-9]+).*'/'\1'/)"
6-
. "$KETL_HOME/config/datasets/$KETL_DATASET_ID-$version_no-cfg.sh"
5+
version_no="$(echo "$KETL_DATASET_VERSION" | sed -E s/'^.*([0-9]+).*'/'\1'/)"
6+
. "$KETL_HOME/config/datasets/$KETL_DATASET_ID-${version_no}-cfg.sh"
77

88
export KETL_HAS_NEO4J=true
9-
export KETL_NEO_VERSION='5.26.0'
10-
export NEO4J_HOME="$KNET_SOFTWARE/neo4j-community-$KETL_NEO_VERSION-etl"
9+
export KETL_NEO_VERSION='2026.04.0'
10+
export NEO4J_HOME="$KNET_SOFTWARE/neo4j-community-$KETL_NEO_VERSION"
11+
12+
# TODO: remove, it's a temp hack to avoid a clash with another running pipeline
13+
# 
14+
function _ketl_get_neo_url ()
15+
{
16+
host_file="$KETL_OUT/tmp/neo4j-slurm.host"
17+
if [[ ! -f "$host_file" ]]; then
18+
# it's probably down, we signal it this way
19+
echo ''
20+
return
21+
fi
22+
neo_host="$(cat "$host_file")"
23+
echo "bolt://$neo_host:7688"
24+
}
25+
export -f _ketl_get_neo_url
26+
27+
export KETL_NEO_IDX_PAUSE_TIME=1m

0 commit comments

Comments
 (0)