Skip to content

Commit

Permalink
formate code
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 committed Oct 10, 2023
1 parent 25379bb commit 547f481
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class APIController {

@PostMapping("/submitTask")
@ApiOperation("Submit Task")
@Log(title = "Submit Task", businessType = BusinessType.SUBMIT)
// @Log(title = "Submit Task", businessType = BusinessType.SUBMIT)
public Result<JobResult> submitTask(@RequestBody TaskDTO taskDTO) throws ExcuteException {
JobResult jobResult = taskService.submitTask(taskDTO.getId(), null);
if (jobResult.isSuccess()) {
Expand All @@ -77,7 +77,7 @@ public Result<JobResult> submitTask(@RequestBody TaskDTO taskDTO) throws ExcuteE
}

@GetMapping("/cancel")
@Log(title = "Cancel Flink Job", businessType = BusinessType.TRIGGER)
// @Log(title = "Cancel Flink Job", businessType = BusinessType.TRIGGER)
@ApiOperation("Cancel Flink Job")
public Result<Boolean> cancel(@RequestParam Integer id) {
return Result.succeed(taskService.cancelTaskJob(taskService.getTaskInfoById(id)), Status.EXECUTE_SUCCESS);
Expand All @@ -88,14 +88,14 @@ public Result<Boolean> cancel(@RequestParam Integer id) {
*/
@GetMapping(value = "/restartTask")
@ApiOperation("Restart Task")
@Log(title = "Restart Task", businessType = BusinessType.REMOTE_OPERATION)
// @Log(title = "Restart Task", businessType = BusinessType.REMOTE_OPERATION)
public Result<JobResult> restartTask(@RequestParam Integer id, @RequestParam String savePointPath)
throws ExcuteException {
return Result.succeed(taskService.restartTask(id, savePointPath));
}

@PostMapping("/savepoint")
@Log(title = "Savepoint Trigger", businessType = BusinessType.TRIGGER)
// @Log(title = "Savepoint Trigger", businessType = BusinessType.TRIGGER)
@ApiOperation("Savepoint Trigger")
public Result<SavePointResult> savepoint(@RequestParam Integer taskId, @RequestParam String savePointType) {
return Result.succeed(
Expand Down

0 comments on commit 547f481

Please sign in to comment.