[jira] [Work logged] (GRIFFIN-240) [Service] Return JobInstance in response to a call Trigger job by id

2019-04-08 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/GRIFFIN-240?focusedWorklogId=224250=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-224250
 ]

ASF GitHub Bot logged work on GRIFFIN-240:
--

Author: ASF GitHub Bot
Created on: 08/Apr/19 08:59
Start Date: 08/Apr/19 08:59
Worklog Time Spent: 10m 
  Work Description: RodionGork commented on pull request #494: GRIFFIN-240 
trigger returns triggerkey
URL: https://github.com/apache/griffin/pull/494#discussion_r272945748
 
 

 ##
 File path: 
service/src/main/java/org/apache/griffin/core/job/repo/JobInstanceRepo.java
 ##
 @@ -53,4 +53,6 @@ Licensed to the Apache Software Foundation (ASF) under one
 
 @Query("select DISTINCT s from JobInstanceBean s where s.state in ?1")
 List findByActiveState(State[] states);
+
+List findByTriggerKey(String triggerKey);
 
 Review comment:
   @chemikadze I've added `@Index` annotation, however it will only create 
index when the table is created - not when it is just modified by adding 
column. This should be ok, though.
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 224250)
Time Spent: 4h 20m  (was: 4h 10m)

> [Service] Return JobInstance in response to a call Trigger job by id 
> -
>
> Key: GRIFFIN-240
> URL: https://issues.apache.org/jira/browse/GRIFFIN-240
> Project: Griffin
>  Issue Type: Improvement
>Reporter: Aleksandr Borgatin
>Priority: Major
>  Time Spent: 4h 20m
>  Remaining Estimate: 0h
>
> The proposal is following: in response of method "/jobs/trigger/\{id}" to 
> return JobInstance
> {code:java}
> @RequestMapping(value = "/jobs/trigger/{id}", method = RequestMethod.POST)
> @ResponseStatus(HttpStatus.OK)
> public JobInstanceBean triggerJob(@PathVariable("id") Long id) throws 
> SchedulerException
> { return jobService.triggerJobById(id); }{code}
> Now this method looks like this
> {code:java}
> @RequestMapping(value = "/jobs/trigger/{id}", method = RequestMethod.POST)
> @ResponseStatus(HttpStatus.NO_CONTENT)
> public void triggerJob(@PathVariable("id") Long id) throws 
> SchedulerException {
> jobService.triggerJobById(id);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (GRIFFIN-244) [Service, Metric]Implement possibility to get metrics for certain Job Instance Id

2019-04-08 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/GRIFFIN-244?focusedWorklogId=224213=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-224213
 ]

ASF GitHub Bot logged work on GRIFFIN-244:
--

Author: ASF GitHub Bot
Created on: 08/Apr/19 06:59
Start Date: 08/Apr/19 06:59
Worklog Time Spent: 10m 
  Work Description: RodionGork commented on issue #492: GRIFFIN-244 get 
metrics by instance
URL: https://github.com/apache/griffin/pull/492#issuecomment-480708435
 
 
   @chemikadze I've made changes in the measure code according to your hint. I 
only was not sure if we should change the "external" interface of 
`MetricWrapper`, but then judged it could be extended whenever we want, so left 
it as is. Tested the whole stuff locally - and hope to repeat this tomorrow for 
demo.
   
   c506980
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 224213)
Time Spent: 3h  (was: 2h 50m)

> [Service, Metric]Implement possibility to get metrics for certain Job 
> Instance Id
> -
>
> Key: GRIFFIN-244
> URL: https://issues.apache.org/jira/browse/GRIFFIN-244
> Project: Griffin
>  Issue Type: New Feature
>Reporter: Dmitry Ershov
>Priority: Major
>  Time Spent: 3h
>  Remaining Estimate: 0h
>
> In addition to functionality described in tasks 
> https://issues.apache.org/jira/browse/GRIFFIN-240, 
> https://issues.apache.org/jira/browse/GRIFFIN-233 and 
> https://issues.apache.org/jira/browse/GRIFFIN-234  it will be very convenient 
> to have a possibility to obtain the metrics for given Job Instance Id.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)