Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
.ipynb_checkpoints
*/~*
*.swp
~*
252 changes: 141 additions & 111 deletions tutorials/tut02/README.md

Large diffs are not rendered by default.

79 changes: 0 additions & 79 deletions tutorials/tut02/example-suite/README.md

This file was deleted.

109 changes: 109 additions & 0 deletions tutorials/tut02/example-workflow/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Running the workflow

## To run the workflow

`cylc validate .`
`cylc install .`
`cylc play example-workflow`

## To stop the workflow (if failed/still running)

`cylc stop example-workflow`

## To clean out the workflow working directory

`cylc clean example-workflow`

This can be required before re-running.

## Working directory

When Cylc runs the workflow it has a working directory where the workflow is run.
This is referenced in the `flow.cylc` file with the environment variable
`$CYLC_WORKFLOW_RUN_DIR`.

By default this will be under:

```
$HOME/cylc-run/<workflow_name>/runN/
```

### Stopping a workflow that is running

Note: In our example workflow, named 'example-workflow', you would change the value of '<WORKFLOW>' to
'example-workflow' in the following commands.

If you need to stop the workflow you can use:

```
cylc stop '<WORKFLOW>'
```

The `cylc stop` command may not stop the workflow immediately - because it will wait for submitted
and running tasks to complete.

To kill the submitted and running tasks before stopping the workflow, use:

```
cylc stop --kill '<WORKFLOW>'
```

To stop the workflow regardless of submitted and running tasks (shut down immediately, leave active tasks alone), use:

```
cylc stop --now '<WORKFLOW>'
```

### Working directory for the example workflow

In the case of the `example-workflow` the working directory will be:

```
$HOME/cylc-run/example-workflow/runN/
```

The example workflow uses this as the common location for all scripts and the outputs
directory to be located in.

### Viewing the workflow graph of the workflow

To view the workflow graph of your workflow _without_ running it, use:

```
cylc install
cylc graph example-workflow
```

NOTE: `cylc install` only installs the workflow. This will not run the workflow until `cylc play` is run.


### Viewing available platform options on the system

```
cylc config --platforms
```

This will list the options you have available that you can use in your `flow.cylc` file - such as running on the local system, or on lotus, e.g.:

```
$ cylc config --platforms
[platforms]
[[localhost]]
install target = localhost
copyable environment variables = FCM_VERSION
submission polling intervals = PT30M
execution polling intervals = PT30M
execution time limit polling intervals = PT5M, PT10M
clean job submission environment = True
[[lotus]]
install target = localhost
copyable environment variables = FCM_VERSION
submission polling intervals = PT30M
execution polling intervals = PT30M
execution time limit polling intervals = PT5M, PT10M
clean job submission environment = True
hosts = localhost
job runner = slurm
[[[meta]]]
description = LOTUS Slurm job
```
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
[cylc]
UTC mode = True # Ignore DST
[[parameters]]
counter = 1..20
[task parameters]
counter = 1..20

[scheduling]
[[dependencies]]
graph = """
[[graph]]
R1 = """
initialise => step1
step1 => batch<counter>
batch<counter> => finish"""
batch<counter> => finish
"""

[runtime]
[[root]]
# This is applied before every task
pre-script="""set -eu"""
[[[job]]]
batch system = slurm
execution time limit = PT5M
execution time limit = PT5M
platform = lotus # See options via `cylc config --platforms`, e.g. `localhost`, `lotus`
[[[directives]]]
--partition = workshop
--partition = debug
--qos = debug
--account = workshop
--time = 05:00
[[initialise]]
Expand Down
Binary file modified tutorials/tut02/images/gui1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/tut02/images/gui2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/tut02/images/gui3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/tut02/images/gui4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/tut02/images/gui5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/tut02/images/gui6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/tut02/images/gui7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorials/tut02/images/gui8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorials/tut02/images/tui1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 0 additions & 97 deletions tutorials/tut02/workshop-suite/README.md

This file was deleted.

Loading