[ 
https://issues.apache.org/jira/browse/LENS-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14651463#comment-14651463
 ] 

Amareshwari Sriramadasu commented on LENS-124:
----------------------------------------------

Here are some comments :

I did not understand the response header of
POST on /schedules : queryapi/schedule/123 : Is this more a redirect?

I think we are missing some more requirements, I'm putting them down here :

# Schedule spec can be a series of queries. For example : Schedule spec can 
consist of
 Q1 : query1; Q2 : query2; Q3 : query3 : where Q2 and Q3 might access of output 
from Q1.

# Schedule spec can be an ML train or test


Here is some code which was sitting in a branch, on 
https://github.com/InMobi/grill/tree/scheduler/ before lens incubation. Some of 
the api has been reviewed and put out there. We can refer them :

https://github.com/InMobi/grill/tree/scheduler/grill-api/src/main/java/com/inmobi/grill/api/schedule
https://github.com/InMobi/grill/blob/scheduler/grill-api/src/main/resources/schedule-0.1.xsd
https://github.com/InMobi/grill/tree/scheduler/grill-server/src/main/java/com/inmobi/grill/server/scheduler



> Add scheduler service on lens
> -----------------------------
>
>                 Key: LENS-124
>                 URL: https://issues.apache.org/jira/browse/LENS-124
>             Project: Apache Lens
>          Issue Type: New Feature
>          Components: server
>            Reporter: Amareshwari Sriramadasu
>              Labels: Hackathon-July
>         Attachments: Lens Scheduler API.pdf
>
>
> Query scheduler service should provide following services
>  * Schedule a query
>  ** Periodically
>  ** On data availability, for ex: whenever a day's data is available
>  * Look at status of scheduled query
>  ** Mostly the current run status
>  * Look at the output of scheduled query - through email?
>  * Update scheduled query
>  ** Update the query
>  ** Update the frequency
>  ** Update the configuration
>   * Look at stats of scheduled query
>   **  number of failures
>   **  number of reruns
>   **  Get handles for completed queries
>  * Cancel a scheduled query
>  * Pause and resume a scheduled query
>  *  Look at all scheduled queries



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to