-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
ZEPPELIN-885 Add option to send email in scheduler execution #918
Conversation
Thank you for good feature. but, i got following problem. Zeppelin Server log.
My Environment : Mac OS elcapitan, chrome lastests. cron time 1m; email : onStart : [email protected] |
I tested and working well. |
cool - should we have the info in documentation? |
@astroshim Oh, I see. Thank you! |
@vgmartinez Thank you for contribution! Before a deep dive into the code, I have a question - could you pelase explain the use-case you have in mind for this feature? I'm trying to understand in particular what is the benefit of introducing complexity of SNTP support in the Zeppelin codebase (not sure that See #8 from this notebook for an example of the data product, that uses this approach for sending out email notifications. |
@cloverhearts @astroshim @felixcheung thks, add more info and doc ASAP. hi @bzz, I think having the option to send an email when you finish executing a note or when an error occurs in one paragraph is a good utility for the user. |
@vgmartinez Thanks for contribution. @vgmartinez and folks, how about having generalized event hook instead of just handling email after scheduler execution? Zeppelin can generate events,
And if there're some extensible mechanism that allow user plugin custom event handler. So possibly not only sending email, but also execute shell script or any other action will be possible for all type of events. What do you think? |
Hi @Leemoonsoo, I totally agree with you. I'll think a bit about this topic, if you already have some idea we can debate. thanks for the suggestion. |
@vgmartinez thank you for explaining the use case, it makes perfect sense and is not covered by the case I was referring to. May it's worth putting it in JIRA\PR description as well, how do you think? @Leemoonsoo suggestion sounds really nice indeed. Even something simpler and less general with just an email would work as a first step, but email facilities better be placed outside of the |
@vgmartinez I think move email facilities from |
@bzz @Leemoonsoo thks for review. |
private StdSchedulerFactory quertzSchedFact; | ||
private org.quartz.Scheduler quartzSched; | ||
private JobListenerFactory jobListenerFactory; | ||
private NotebookRepo notebookRepo; | ||
private SearchService notebookIndex; | ||
private NotebookAuthorization notebookAuthorization; | ||
private static EventNotification notification; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there any special reasons making notification
and conf
static?
Do you mind add new configurations to https://github.com/apache/incubator-zeppelin/blob/master/docs/install/install.md#zeppelin-configuration as well?? |
@Leemoonsoo sorry for delay. I added the configurations in the file install.md and delete the static modifier. |
@vgmartinez No worries. CI build fails with error
Could you take a look? |
92edccf
to
8ab7fe6
Compare
@Leemoonsoo CI pass... |
@vgmartinez Thanks for update. I tried and found 'Cancel' button is not actually discarding chances in dialog. Check following screenshot |
8ab7fe6
to
3dbdba2
Compare
1469364
to
8d50f1a
Compare
Hi @Leemoonsoo, thks |
close #83 close #86 close #125 close #133 close #139 close #146 close #193 close #203 close #246 close #262 close #264 close #273 close #291 close #299 close #320 close #347 close #389 close #413 close #423 close #543 close #560 close #658 close #670 close #728 close #765 close #777 close #782 close #783 close #812 close #822 close #841 close #843 close #878 close #884 close #918 close #989 close #1076 close #1135 close #1187 close #1231 close #1304 close #1316 close #1361 close #1385 close #1390 close #1414 close #1422 close #1425 close #1447 close #1458 close #1466 close #1485 close #1492 close #1495 close #1497 close #1536 close #1545 close #1561 close #1577 close #1600 close #1603 close #1678 close #1695 close #1739 close #1748 close #1765 close #1767 close #1776 close #1783 close #1799
What is this PR for?
Add the option to send email when a note is runing using the scheduler.
The option to send an email when you finish executing a note or when an error occurs in one paragraph is a good utility for the user.
What type of PR is it?
Improvement
Todos
What is the Jira issue?
How should this be tested?
Screenshots (if appropriate)
Questions: