gjcarneiro / yacron

A modern Cron replacement that is Docker-friendly
MIT License
449 stars 38 forks source link

Email / Sentry reporting: jinja2 templating #8

Closed gjcarneiro closed 6 years ago

gjcarneiro commented 6 years ago

As a final feature before a 1.0 release, I'd would like to have the reports more customisable, using jinja2 as templating language. Namely, the "subject" and "body" of the reporting would have the possibility of being customised.

  onPermanentFailure:
    report:
      sentry:
         dsn:
           value: xxxxx
      title: "job {{name}} has failed"
      body: |
          The cron job {{name}} has failed with status {{status}}
          STDOUT:
          ------------
          {{stdout}}

          STDERR:
          ------------
          {{stderr}}