8000 GitHub - aamir/luigi-monitor: Send summary messages of your Luigi jobs to Slack
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aamir/luigi-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luigi Monitor

message

Send summary messages of your Luigi jobs to Slack.

Overview

Luigi is a great tool for making job pipelines, but it's hard to know the status of a run. Luigi has support for error emails, but this requires configuring your machine to send email, which is a hassle for short-lived EMR clusters. Further, it sends an email for every failure, which can quickly swamp your inbox.

By contrast, this tool gathers all your failures and missing dependencies and sends a summary Slack message when the job is finished.

Usage

import luigi
from luigi_monitor import monitor

...

if __name__ == "__main__":
    with monitor(slack_url=<your_slack_url>, max_print=10):
        luigi.run(main_task_cls=MainClass)

Alternatively:

luigi-monitor --module path.to.module TaskName

NB: if you plan to use luigi-monitor from the command line, set options using luigi.cfg:

[luigi-monitor]
slack_url=<slack_hook>
max_print=<int>

This is a work in progress. Particularly, note that:

  • It only sends notifications for FAILURE and DEPENDENCY_MISSING events.
  • It only sends notifications via Slack
  • If you have more than 5 notifications in a category (FAILURE or DEPENDENCY_MISSING), it will notify you of that rather than posting a long list of errors.

About

Send summary messages of your Luigi jobs to Slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0