File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/scala/za/co/absa/hyperdrive/trigger/scheduler Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import za.co.absa.hyperdrive.trigger.scheduler.executors.Executors
27
27
import za .co .absa .hyperdrive .trigger .scheduler .notifications .NotificationSender
28
28
import za .co .absa .hyperdrive .trigger .scheduler .sensors .Sensors
29
29
30
- import scala .collection .mutable
30
+ import scala .collection .concurrent .{ Map => ConcurrentMap , TrieMap }
31
31
import scala .concurrent .{ExecutionContext , ExecutionContextExecutor , Future }
32
32
import scala .util .{Failure , Success }
33
33
@@ -57,7 +57,7 @@ class JobScheduler @Inject() (
57
57
private var runningEnqueue = Future .successful((): Unit )
58
58
private var runningAssignWorkflows = Future .successful((): Unit )
59
59
private var runningSendingNotifications = Future .successful((): Unit )
60
- private val runningDags = mutable. Map .empty [RunningDagsKey , Future [Unit ]]
60
+ private val runningDags : ConcurrentMap [RunningDagsKey , Future [Unit ]] = TrieMap .empty
61
61
62
62
def startManager (): Unit = {
63
63
logger.info(" Starting Manager" )
You can’t perform that action at this time.
0 commit comments