Skip to content

Commit

Permalink
trying to fix the connection fail, only on actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRobertIn committed Nov 29, 2023
1 parent c53e1d7 commit 3768cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .acimov/model-test/corese.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ def prepare_java_process():
if "--is-action" in argv:
print_title("Preparing Action Corese Gateway")
graph_db_process = Popen(
f"java -jar -Dfile.encoding=UTF-8 -p {CORESE_PORT}".split(" ") + [CORESE_LOCAL_PATH, "-c", CORESE_PARAMETER_PATH],
f"java -jar -Dfile.encoding=UTF-8".split(" ") + [CORESE_LOCAL_PATH, "-c", CORESE_PARAMETER_PATH],
stdout=DEVNULL,
stderr=DEVNULL,
close_fds='posix' in builtin_module_names
)
sleep(1)
gateway = JavaGateway(java_process=graph_db_process)
gateway = JavaGateway()
register(gateway.shutdown)
else:
with java_process_lock:
Expand Down

0 comments on commit 3768cb6

Please sign in to comment.