Uploaded image for project: 'Griffin'
  1. Griffin
  2. GRIFFIN-240

[Service] Return JobInstance in response to a call Trigger job by id

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      The proposal is following: in response of method "/jobs/trigger/{id}" to return JobInstance

      @RequestMapping(value = "/jobs/trigger/{id}", method = RequestMethod.POST)
      @ResponseStatus(HttpStatus.OK)
      public JobInstanceBean triggerJob(@PathVariable("id") Long id) throws SchedulerException
      { return jobService.triggerJobById(id); }

      Now this method looks like this

          @RequestMapping(value = "/jobs/trigger/{id}", method = RequestMethod.POST)
          @ResponseStatus(HttpStatus.NO_CONTENT)
          public void triggerJob(@PathVariable("id") Long id) throws SchedulerException {
              jobService.triggerJobById(id);
          }
      

      Attachments

        Activity

          People

            guoyp William Guo
            aborgatin Aleksandr Borgatin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5.5h
                5.5h