File: abort.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 (73 lines) | stat: -rw-r--r-- 2,564 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

.. _abort_cli:

abort
*****







.. rubric:: Output of :code:`--help=abort`



The following help text is generated by :code:`ecflow_client --help=abort`

::

   
   abort
   -----
   
   Mark task as aborted. For use in the '.ecf' script file *only*
   Hence the context is supplied via environment variables
     arg1 = (optional) string(reason)
            Optionally provide a reason why the abort was raised
   
   If this child command is a zombie, then the default action will be to *block*.
   The default can be overridden by using zombie attributes.
   Otherwise the blocking period is defined by ECF_TIMEOUT.
   
   Usage:
     ecflow_client --abort=reasonX
   
   The client considers, for both user and child commands, the following environment variables:
   
     ECF_HOST <string> [mandatory*]
       The main server hostname; default value is 'localhost'
     ECF_PORT <int> [mandatory*]
       The main server port; default value is '3141'
     ECF_SSL <any> [optional*]
       Enable secure communication between client and server.
     ECF_HOSTFILE <string> [optional]
       File that lists alternate hosts to try, if connection to main host fails
     ECF_HOSTFILE_POLICY <string> [optional]
       The policy ('task' or 'all') to define which commands consider using alternate hosts.
   
   The options marked with (*) must be specified in order for the client to communicate
   with the server, either by setting the environment variables or by specifying the
   command line options.
   
   The following environment variables are used specifically by child commands:
   
     ECF_NAME <string> [mandatory]
       Full path name to the task
     ECF_PASS <string> [mandatory]
       The job password (defined by the server, and used to authenticate client requests)
     ECF_TRYNO <int> [mandatory]
       The run number of the job (defined by the server, and used in job/output file name generation.
     ECF_RID <string> [mandatory]
       The process identifier. Supports identifying zombies and automated killing of running jobs
     ECF_TIMEOUT <int> [optional]
       Maximum time in *seconds* for client to deliver message to main server; default is 24 hours
     ECF_DENIED <any> [optional]
       Allows task to exit with an error, upon connection failure, thus avoids ECF_TIMEOUTs wait.
     NO_ECF <any> [optional]
       If set, ecflow_client exits immediately with success; useful to test the scripts without a server
   
   The scripts are expected to export the mandatory variables, typically in shared include files