GitHub user cloverhearts reopened a pull request:

    https://github.com/apache/zeppelin/pull/1930

    [ZEPPELIN-1886] implementation z.getZeppelinJobStatus 

    ### What is this PR for?
    You can get the state of a paragraph through ZeppelinContext.
    This allows you to implement code according to the paragraph condition.
    
    related
    https://github.com/apache/zeppelin/pull/1799
    
    ### What type of PR is it?
    Feature
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-1886
    
    ### How should this be tested?
    
    1. run paragraph.
    2. Record the noteid and paragraph id of the paragraph you have run.
    3. You can use the following code:
    for example
    ```
    %spark
    z.getJobStatus("noteID", "paragraphId").name()
    z.getJobStatus("2C8D89Y9N", "20170121-042805_156018837").isFinished()
    z.getJobStatus("2C8D89Y9N", "20170121-042805_156018837").isAbort()
    z.getJobStatus("2C8D89Y9N", "20170121-042805_156018837").isError()
    z.getJobStatus("2C8D89Y9N", "20170121-042805_156018837").isPending()
    z.getJobStatus("2C8D89Y9N", "20170121-042805_156018837").isRunning()
    ```
    
    ### Screenshots (if appropriate)
    
![zeppelinstatus](https://cloud.githubusercontent.com/assets/10525473/22175433/770168b2-dfa9-11e6-8471-5dfa92e56eaa.png)
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no
    * Does this needs documentation? yes


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloverhearts/zeppelin 
ZEPPELIN-GET-PARAGRAPH-STATUS

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1930.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 #1930
    
----
commit 43c9ea5051745a013fd78d5a9497e960d42c6570
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2016-12-30T22:29:38Z

    extends z.status on RemoteWorks

commit f0e9825e0e5867b750a8b386c0b82233b3915302
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-01T05:53:09Z

    implement check status logic in workflow

commit 44fd762e1e9646deb0fdccfec7e3cabaa2042bfb
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-21T15:10:10Z

    add status getter

commit 7eac7572dcaf81f9b14a255f531fb7df7d465d7e
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-21T20:08:42Z

    change method name

commit 01614e6be21f7d08038db55b38a6da58744df505
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-21T20:55:01Z

    added test case

commit cdbdb4ce51453239323e228847f7b6d87cbc2bb6
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-21T21:43:09Z

    remove “

commit b9948df748281579c1998434915b0a9e29dd274d
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-23T22:03:14Z

    change test case for println

commit 7ecde8aeca227ff43c7ac2c5bb139dfedbeee4b6
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-23T22:57:53Z

    remove println in testcase

commit a6b1719594c481c9236eea639b419526ab7918db
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-24T02:40:24Z

    remove "

commit 0482333c3394b878dec5cdb9f60322c6d19a2de5
Author: cloverhearts <cloverhearts...@gmail.com>
Date:   2017-01-24T07:13:05Z

    remove system.out

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to