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

Proposal: Email mechanism #28

Closed
wants to merge 2 commits into from
Closed

Proposal: Email mechanism #28

wants to merge 2 commits into from

Conversation

vreuter
Copy link
Member

@vreuter vreuter commented Mar 23, 2017

This would need some additional handling of SMTP and then hooks into PipelineManager methods (fail_pipeline and/or _exit_handler ?) but I wanted to see if this is viable. It'd be nice to be notified automatically when something completes and/or fails early without checking manually.

@vreuter vreuter requested a review from nsheff March 23, 2017 15:46
@@ -461,6 +469,12 @@ def run(self, cmd, target=None, lock_name=None, shell="guess", nofail=False, cle
# in your pipeline can depend on this since it won't be run if that command # isn't required because target exists.
return process_return_code


@staticmethod
def _likely_shell(cmd):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea.

@nsheff
Copy link
Member

nsheff commented Mar 23, 2017

Yes, this has been on my to-do list for awhile. Now expand this to a larger vision:

Instead of a Mailer class, how about a Notifier class that can speak not only SMTP, but MySQL -- so we could enter results into a database.

report_result would use the notify class to insert into a database, or whatever; failures would trigger an e-mail (and insert into the db). a web interface displays job running status.

PipelineManager contructor takes an optional Notifier object at instantiation. Notifier is created by the pipeline and linked to project-config or looperenv variables.

@vreuter vreuter mentioned this pull request Mar 24, 2017
@vreuter
Copy link
Member Author

vreuter commented Mar 24, 2017

OK, closing in favor of #29 since this is broader-scope

@vreuter vreuter closed this Mar 24, 2017
@vreuter vreuter deleted the email branch July 16, 2017 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants