Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot Spring boot Quartz,对特定作业执行进行优先级排序_Spring Boot_Quartz Scheduler - Fatal编程技术网

Spring boot Spring boot Quartz,对特定作业执行进行优先级排序

Spring boot Spring boot Quartz,对特定作业执行进行优先级排序,spring-boot,quartz-scheduler,Spring Boot,Quartz Scheduler,我有1个应用程序作为作业的生产者(调度器),N个应用程序作为消费者(执行者)。 有没有办法使用Quartz对特定作业的执行进行优先级排序? f、 e:在某一时刻,我有1000个作业在队列中,我需要执行一个具有最高优先级的特定作业 一种可能的解决方案是为主作业设置不同的组名。但是否可以设置我的1个消费者应用程序仅执行具有特定组名的作业 提前感谢您的回复。您使用什么机制将消息放入?JobDetailFactoryBean jobDetailFactory=new JobDetailFactoryBe

我有1个应用程序作为作业的生产者(调度器),N个应用程序作为消费者(执行者)。 有没有办法使用Quartz对特定作业的执行进行优先级排序? f、 e:在某一时刻,我有1000个作业在队列中,我需要执行一个具有最高优先级的特定作业

一种可能的解决方案是为主作业设置不同的组名。但是否可以设置我的1个消费者应用程序仅执行具有特定组名的作业


提前感谢您的回复。

您使用什么机制将消息放入?
JobDetailFactoryBean jobDetailFactory=new JobDetailFactoryBean();SimpleTriggerFactoryBean触发器工厂=新SimpleTriggerFactoryBean();scheduleJob(作业详细信息,触发器)我刚刚通过创建另一个调度程序解决了这个问题,它为自己保留了线程,并且只执行这些特定的作业