<div id="starting-the-suite"> <span id="starting-suite"></span><span id="index-0"></span> <p>The <strong>ecf_start.sh</strong> script will automatically set up and start your <a href="/wiki/display/ECFLOW/Glossary#term-ecflow-server"><em >ecflow_server</em></a>.</p> <p>If you started an ecFlow manually then your server will start in a <a href="/wiki/display/ECFLOW/Glossary#term-halted"><em >halted</em></a> state.</p> <p>In this case you you will have to “restart” your server before you can use it.</p> <p>In a <a href="/wiki/display/ECFLOW/Glossary#term-halted"><em >halted</em></a> state the server will not schedule any tasks.</p> <p>To check the status of the server, type the following at the unix prompt:</p> <div ><pre>> ecflow_client --stats</pre> </div> <p>Examine the output. If the <a href="/wiki/display/ECFLOW/Glossary#term-ecflow-server"><em >ecflow_server</em></a> is <a href="/wiki/display/ECFLOW/Glossary#term-halted"><em >halted</em></a> you would restart with:</p> <div ><pre>> ecflow_client --restart</pre> </div> <p>Once the <a href="/wiki/display/ECFLOW/Glossary#term-ecflow-server"><em >ecflow_server</em></a> is <a href="/wiki/display/ECFLOW/Glossary#term-running"><em >running</em></a> you have to start the <a href="/wiki/display/ECFLOW/Glossary#term-suite"><em >suite</em></a> by typing:</p> <div ><pre>> ecflow_client --begin test</pre> </div> <div > <div >Restarting and begin’ing the suite can also be done with the <a href="/wiki/display/ECFLOW/ecFlow+Python+Api#python-api"><em>ecFlow Python Api</em></a>.</div> <div >Add the following to end of your python file</div> </div> <div ><div ><pre><span >ci</span> <span >=</span> <span >ecflow</span><span >.</span><span >Client</span><span >();</span> <span >try</span><span >:</span> <span >ci</span><span >.</span><span >restart_server</span><span >()</span> <span >ci</span><span >.</span><span >begin_suite</span><span >(</span><span >"test"</span><span >)</span> <span >except</span> <span >RuntimeError</span><span >,</span> <span >e</span><span >:</span> <span >print</span> <span >"failed: "</span> <span >+</span> <span >str</span><span >(</span><span >e</span><span >);</span> </pre></div> </div> <p>What to do:</p> <ol > <li>Restart the <a href="/wiki/display/ECFLOW/Glossary#term-ecflow-server"><em >ecflow_server</em></a></li> <li>Begin the <a href="/wiki/display/ECFLOW/Glossary#term-suite"><em >suite</em></a></li> </ol> </div> |