File: overview.rst

package info (click to toggle)
ecflow 5.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,868 kB
  • sloc: cpp: 269,341; python: 22,756; sh: 3,609; perl: 770; xml: 333; f90: 204; ansic: 141; makefile: 70
file content (79 lines) | stat: -rw-r--r-- 3,368 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.. _tutorial-overview:
   
Overview
********

This section gives an overview of the steps involved in using ecFlow.

Step 1: Write a suite definition
================================
     
The :term:`suite definition` defines how your tasks run and interact.
:term:`task` s are placed in families, which themselves may be placed in families
and/or :term:`suite` s. All the entities are called :term:`node` s and form a
hierarchical tree.
  
There are two main methods for describing a :term:`suite definition` to the :term:`ecflow_server`.  
  
* via a **text** :term:`suite definition` 
    
  The grammar of this text definition is described by :ref:`grammar`.  
  This grammar does not support conditional statements (such as if,while,for)
  nor the ability to define functions. However, the text definition file can 
  be generated/created using any language which in itself supports conditional statements.  
  The text definition is similar to that offered by SMS/CDP and as such may be an 
  appropriate migration path for some.

* via a **python** :term:`suite definition`
    
  This allows more checking and functionality and as 
  such is our **preferred** method. See :ref:`python_api`.
     
Step 2: Write your scripts
==========================
   
:term:`ecf script` will correspond with the :term:`task` in the :term:`suite definition`. 
The script defines the **main work** that is to be carried out.
The script includes :term:`child command` s and special comments and manual sections
that provides information for operators.
     
The :term:`child command` s are a restricted set of :term:`ecflow_client` commands that communicate with
the :term:`ecflow_server`. They inform the server when the job has started, completed or
set some :term:`event`.

Step 3: Start an ecFlow server
==============================

After :term:`ecflow_server` is started, the :term:`suite definition`, can then be loaded into it.

* The user then initiates :term:`scheduling` in the :term:`ecflow_server`
* :term:`scheduling` will check :term:`dependencies` in the :term:`suite definition`
  every minute. If these :term:`dependencies` are free, the server will submit the :term:`task`.
  This process is called :term:`job creation`. The running process corresponding to the
  :term:`task` is referred to as a job.
     
The running jobs will communicate back to the server using :term:`child command` s.
These cause:

* :term:`status` changes on the :term:`node` s held in the server. 
* update to attributes of a node (i.e like :term:`event` s, :term:`meter` s and :term:`label` s)
   
Step 4: Interact with the GUI
=============================

ecFlow has a specialised GUI client, called :term:`ecflow_ui`. This is used to
visualise and monitor:

* The hierarchical structure of the :term:`suite definition`. (:term:`suite`, :term:`family`, :term:`task`)
* state changes in the nodes and server.
* Attributes of the nodes and any :term:`dependencies`.
* :term:`ecf script` file and the expanded :term:`job file`.
   
In addition :term:`ecflow_ui` provides a rich set of :term:`ecflow_client` commands that can interact with
the server.
   
.. warning::

   The following tutorial will show examples in plain text and Python.
   However it is recommended that you use python, since the later tutorial
   examples use conditionals like 'if' and looping constructs.