Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(ios): remove TERMINATE from the suggested lifecycle actions #817

Merged
merged 1 commit into from
Jul 15, 2023
Merged
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
11 changes: 9 additions & 2 deletions docs/docs/ios/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,17 @@ If you specify custom ones then your values will be placed as a lower priority p

### Test run lifecycle
Marathon provides two lifecycle hooks: `onPrepare` and `onDispose`.
For each you can specify one of the `TERMINATE` (terminate simulator), `SHUTDOWN` (shutdown simulator) and `ERASE` (erase simulator).
For each you can specify one of the following actions: `SHUTDOWN` (shutdown simulator), `ERASE` (erase simulator) and `TERMINATE` (terminate simulator).

These can be useful during provisioning of workers, e.g. you might want to erase the existing simulators before using them

:::warning

If you specify `TERMINATE` marathon will `kill -SIGKILL` the simulators. This usually results in simulators unable to boot with
black screen as well as a number of zombie processes and can only be resolved by erasing the state. In most cases `SHUTDOWN` is the recommended action.

:::

:::tip

If you specify `ERASE` then marathon will first shut down the simulator since it's impossible to erase it otherwise
Expand All @@ -277,7 +284,7 @@ lifecycle:
onPrepare:
- ERASE
onDispose:
- TERMINATE
- SHUTDOWN
```

:::tip
Expand Down
11 changes: 9 additions & 2 deletions docs/versioned_docs/version-0.8.0/ios/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,17 @@ If you specify custom ones then your values will be placed as a lower priority p

### Test run lifecycle
Marathon provides two lifecycle hooks: `onPrepare` and `onDispose`.
For each you can specify one of the `TERMINATE` (terminate simulator), `SHUTDOWN` (shutdown simulator) and `ERASE` (erase simulator).
For each you can specify one of the following actions: `SHUTDOWN` (shutdown simulator), `ERASE` (erase simulator) and `TERMINATE` (terminate simulator).

These can be useful during provisioning of workers, e.g. you might want to erase the existing simulators before using them

:::warning

If you specify `TERMINATE` marathon will `kill -SIGKILL` the simulators. This usually results in simulators unable to boot with
black screen as well as a number of zombie processes and can only be resolved by erasing the state. In most cases `SHUTDOWN` is the recommended action.

:::

:::tip

If you specify `ERASE` then marathon will first shut down the simulator since it's impossible to erase it otherwise
Expand All @@ -277,7 +284,7 @@ lifecycle:
onPrepare:
- ERASE
onDispose:
- TERMINATE
- SHUTDOWN
```

:::tip
Expand Down