Skip to content

Commit

Permalink
code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
aiceflower committed Dec 20, 2024
1 parent 8b6fd5e commit b9283d1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ abstract class EntranceServer extends Logging {

Utils.tryAndWarn {
// 如果是使用优先级队列,设置下优先级
val properties: util.Map[String, AnyRef] = TaskUtils.getRuntimeMap(params)
val configMap = params
.getOrDefault(TaskConstant.PARAMS, new util.HashMap[String, AnyRef]())
.asInstanceOf[util.Map[String, AnyRef]]
val properties: util.Map[String, AnyRef] = TaskUtils.getRuntimeMap(configMap)
val fifoStrategy: String = FIFO_QUEUE_STRATEGY
if (
PFIFO_SCHEDULER_STRATEGY.equalsIgnoreCase(
Expand Down

0 comments on commit b9283d1

Please sign in to comment.