Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 747 Bytes

File metadata and controls

48 lines (34 loc) · 747 Bytes
title Run
description
linkTitle Run
menu
main
parent weight
task-syntax
10

Run attribute

By default, a task can run as many times as it appears in the requires tree. Consider a scenario where a task is required to run only one time per xc invocation, regardless of how many times it is required.

The solution would be to set the run attribute to once (defaults to always).

### setup

run: once

```
echo "TASK 3"
```

This will result in the task only running the first time it is invoked.

The default is always, which can be omitted or specified.

### setup

```
echo "TASK 3"
```

is the same as

### setup

run: always

```
echo "TASK 3"
```