https://github.com/uswitch/dagr-sample-programs
https://github.com/uswitch/dagr-sample-programs
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uswitch/dagr-sample-programs
- Owner: uswitch
- Created: 2014-11-28T11:58:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-14T10:45:57.000Z (over 10 years ago)
- Last Synced: 2024-12-15T06:12:12.604Z (over 1 year ago)
- Language: Ruby
- Size: 4.88 KB
- Stars: 0
- Watchers: 52
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sample Dagr Programs
====================
[Dagr](https://github.com/uswitch/dagr) helps ensure programs run daily. It monitors a git repository (much like this sample one) and will attempt to run a `main` inside a directory (if one exists). Each directory represents a separate program.
Programs communicate to Dagr via `stderr` and `stdout`- output will be captured and stored on the dashboard and streamed to any connected web clients (via a websocket). Dagr uses the program's exit code to indicate whether the job succeeded or failed (`0` and `2` respectively). If a program exits with a code of `1` Dagr will attempt to re-execute the program after a configured delay: `1` represents a retryable error for an intermittent failure (perhaps a networking problem etc.).