Skip to content

Commit

Permalink
Fix task migration
Browse files Browse the repository at this point in the history
Tasks with missing execution state are now treated correctly.
  • Loading branch information
mederly committed Mar 9, 2021
1 parent 3d94fbd commit d581d9b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -28,7 +28,7 @@ public class TaskMigrator {
public void migrateIfNeeded(TaskQuartzImpl task, OperationResult result)
throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException {

if (task.getSchedulingState() == null) {
if (task.getSchedulingState() == null && task.getExecutionState() != null) {
task.setSchedulingState(determineSchedulingState(task.getExecutionState()));
task.flushPendingModifications(result);
}
Expand Down

0 comments on commit d581d9b

Please sign in to comment.