GitHub user tinkoff-dwh opened a pull request:
https://github.com/apache/zeppelin/pull/2697
[Zeppelin-2964] Stop execution on schedule if the note has been moved to
the trash
### What is this PR for?
When you put the note (or folder) in the trash, the note continues to run
on schedule.
This PR fixes this. Now when you put the note into the trash, the task is
removed, and when you restore the note, it runs again.
### What type of PR is it?
Improvement
### What is the Jira issue?
[ZEPPELIN-3007](https://issues.apache.org/jira/browse/ZEPPELIN-3007)
### How should this be tested?
- Create a scheduled launch for the note.
- Put the note in the trash.
- Look through the logs.
- Note must stop running.
- Restore the note from the trash.
- Running on a schedule should continue again.
### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tinkoff-dwh/zeppelin ZEPPELIN-2964
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/2697.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2697
----
commit 3906b9ef46d789cc113abe4adb7e982ba900d521
Author: tinkoff-dwh <[email protected]>
Date: 2017-12-05T09:17:49Z
[ZEPPELIN-2964] drop cron when note placed in the trash
commit 3db4a8e20632f30c960a0125f047cf063348b790
Author: tinkoff-dwh <[email protected]>
Date: 2017-12-05T12:11:57Z
[ZEPPELIN-2964] restore cron together note/folder
commit b12ae4cb2ad651c662643cc96c758cc068c34525
Author: tinkoff-dwh <[email protected]>
Date: 2017-12-05T12:23:43Z
[ZEPPELIN-2964] add if statement
----
---