Skip to content

Commit 7996c9e

Browse files
authored
[Bug][To 1.2] Ignore tenant conditions when refreshing a job (#4451)
1 parent 6e874a7 commit 7996c9e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dinky-admin/src/main/java/org/dinky/job/handler/JobRefreshHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ public static boolean refreshJob(JobInfoDetail jobInfoDetail, boolean needSave)
194194

195195
isDone = !isTransition && isDone;
196196

197+
// we use jobInstanceId get info and update, ignore tenant ,Otherwise, it will cause tenant condition filtering
198+
// errors
199+
TenantContextHolder.ignoreTenant();
200+
197201
if (!oldStatus.equals(jobInstance.getStatus()) || isDone || needSave) {
198202
log.debug("Dump JobInfo to database: {}->{}", jobInstance.getId(), jobInstance.getName());
199203
if (jobInstance.getStatus().equals(JobStatus.UNKNOWN.getValue())

0 commit comments

Comments
 (0)