Skip to content

Commit

Permalink
fix(core): handle worker thread context globally
Browse files Browse the repository at this point in the history
close #819
  • Loading branch information
tchiotludo committed Jan 19, 2023
1 parent 4bc6dda commit f76c2d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/io/kestra/core/runners/Worker.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ public WorkerThread(Logger logger, WorkerTask workerTask, RunnableTask<?> task,

@Override
public void run() {
Thread.currentThread().setContextClassLoader(this.task.getClass().getClassLoader());

try {
// timeout
if (workerTask.getTask().getTimeout() != null) {
Expand Down

0 comments on commit f76c2d3

Please sign in to comment.