retry机制抛出异常

This commit is contained in:
lxu75
2025-05-21 14:50:37 +08:00
parent 0669a5d287
commit a231fecaa5
3 changed files with 27 additions and 4 deletions

View File

@@ -18,7 +18,6 @@ public interface DiFyFeign {
, produces = MediaType.APPLICATION_JSON_VALUE)
JSONObject runWorkflows(@RequestHeader(value = "Authorization") String authorization, @RequestBody Map<String, Object> map);
@Retryable(maxAttempts = 1, backoff = @Backoff(delay = 1000))
@PostMapping(value = "v1/workflows/run"
, consumes = MediaType.APPLICATION_JSON_VALUE
, produces = MediaType.APPLICATION_JSON_VALUE)