mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: support passing instance parameters. #381
This commit is contained in:
parent
1d34547f45
commit
abf266b7f8
@ -63,8 +63,8 @@ public class JobController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/run")
|
@GetMapping("/run")
|
||||||
public ResultDTO<Long> runImmediately(String appId, String jobId) {
|
public ResultDTO<Long> runImmediately(String appId, String jobId, @RequestParam(required = false) String instanceParams) {
|
||||||
return ResultDTO.success(jobService.runJob(Long.valueOf(appId), Long.valueOf(jobId), null, 0L));
|
return ResultDTO.success(jobService.runJob(Long.valueOf(appId), Long.valueOf(jobId), instanceParams, 0L));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/list")
|
@PostMapping("/list")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user