Skip to content

Commit

Permalink
[Optimization] Optimization scheduler request error assert method (Da…
Browse files Browse the repository at this point in the history
…taLinkDC#4011)

Co-authored-by: Zzm0809 <[email protected]>
Co-authored-by: GH Action - Upstream Sync <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2024
1 parent a1613a1 commit 8cbd5bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Project createDinkyProject() {
.form(map)
.timeout(5000)
.execute();
if (httpResponse.getStatus() != 200) {
if (!httpResponse.isOk()) {
SystemConfiguration.getInstances().getDolphinschedulerEnable().setValue(false);
logger.error("DolphInScheduler connection failed, Reason: {}", httpResponse.getStatus());
return null;
Expand Down Expand Up @@ -101,7 +101,7 @@ public Project getDinkyProject() {
.timeout(5000)
.execute();

if (httpResponse.getStatus() != 200) {
if (!httpResponse.isOk()) {
SystemConfiguration.getInstances().getDolphinschedulerEnable().setValue(false);
logger.error("DolphInScheduler connection failed, Reason: {}", httpResponse.getStatus());
return null;
Expand Down

0 comments on commit 8cbd5bb

Please sign in to comment.