https://github.com/simonsobs/nextline-alert
A plugin of nextline-graphql. Emit alerts to Campana
https://github.com/simonsobs/nextline-alert
nextline
Last synced: 9 months ago
JSON representation
A plugin of nextline-graphql. Emit alerts to Campana
- Host: GitHub
- URL: https://github.com/simonsobs/nextline-alert
- Owner: simonsobs
- License: mit
- Created: 2024-02-01T15:46:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T13:25:37.000Z (about 1 year ago)
- Last Synced: 2025-04-03T14:28:20.559Z (about 1 year ago)
- Topics: nextline
- Language: Python
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# nextline-alert
[](https://pypi.org/project/nextline-alert)
[](https://pypi.org/project/nextline-alert)
[](https://github.com/simonsobs/nextline-alert/actions/workflows/unit-test.yml)
[](https://github.com/simonsobs/nextline-alert/actions/workflows/type-check.yml)
[](https://codecov.io/gh/simonsobs/nextline-alert)
A plugin for [nextline-graphql](https://github.com/simonsobs/nextline-graphql).
Emit alerts to [Campana](https://github.com/simonsobs/campana)
## Installation
```console
pip install nextline-alert
```
## Alert types
- **Run failed:** The script execution by `nextline` ended with an uncaught
exception except for `KeyboardInterrupt`.
- **Idle:** The time specified by `NEXTLINE_ALERT__IDLE_TIMEOUT_MINUTES`
minutes has passed without the script execution since the last run ended or
the backend started.
## Configuration
| Environment variable | Default value | Description |
| -------------------------------------- | ------------------------- | --------------------------- |
| `NEXTLINE_ALERT__CAMPANA_URL` | `http://httpbin.org/post` | The CAMPANA endpoint |
| `NEXTLINE_ALERT__PLATFORM` | `localhost` | The platform name |
| `NEXTLINE_ALERT__IDLE_TIMEOUT_MINUTES` | 20.0 | The idle timeout in minutes |