Skip to content

Commit

Permalink
added one day forecast task
Browse files Browse the repository at this point in the history
  • Loading branch information
msouff committed Jul 6, 2020
1 parent a75b808 commit 9374f68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions ecflow/client.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/usr/bin/python3.6m
import ecflow

host_port = "ecgate:18753" # "localhost:2500"
try:
ci = ecflow.Client("localhost:2500")
ci = ecflow.Client(host_port)
ci.ping()

except RuntimeError as e:
print("ping failed: ", str(e))

try:
print("Loading definition in 'run_rapid.def' into the server")
ci = ecflow.Client("localhost:2500")
ci = ecflow.Client(host_port)

ci.sync_local() # get the defs from the server, and place on ci
defs = ci.get_defs() # retrieve the defs from ci
Expand Down
9 changes: 5 additions & 4 deletions ecflow/start_ecflow_server.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#! /bin/bash
export ECF_PORT=2500
export ECF_HOST=uvm

ecflow_start.sh -d $HOME/host_share/rapid_run/ecflow
#export ECF_PORT=2500
#export ECF_HOST=uvm
#
#ecflow_start.sh -d $HOME/host_share/rapid_run/ecflow
ecflow_start.sh -d $HOME/rapidpy-ecflow/ecflow

0 comments on commit 9374f68

Please sign in to comment.