in Education by
In my spring boot application is used quartz starter. All jobs that produced are adding in runtime into DB. The DB is used different services, but jobs can be handled only services which was populating DB with jobs. Starting any service I need guarantee that only jobs produced by this one will be added into quartz job context. We can detect these jobs by specified groups. Questions are: 1 How to manage job loader with minimum changes (using out the box solution) filtering jobs only by specified group (different groups should not be handled in this job context)? 2 How to register in quartz scheduler only JobClasses valid for the current service? (as example service could support googleRetry only jobs, but DB contains fbRetry and linkedInRetry. The instance should load googleRetry jobs only.) I hope it could manage job loading from different side. 3 I've detected in quartz DriverDelegate next method /** *

* Get the names of all of the triggers in the given group and state that * have misfired - according to the given timestamp. *

* * @param conn * the DB Connection * @return an array of {@link * org.quartz.utils.Key} objects */ List selectMisfiredTriggersInGroupInState(Connection conn, String groupName, String state, long ts) throws SQLException; but no usages of it. I expect it should be used in special recovery mode (in case of recovering filtering by group as example) but no usages. I tried to manage CustomDelegate upgrading selectTriggersForRecoveringJobs with functionality i need, but getting a CURSOR issue in this case. Is it possible to configure quartz recovery mode with using selectMisfiredTriggersInGroupInState, how? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
It seems attention was concentrated on different things. Quartz scheduler definitely should know its own jobs. Additional idea manage quartz schedulers for different services like different ones (similar for same cluster only). Solution is to specify scheduler name: spring: quartz: job-store-type: jdbc properties: org: quartz: thread-pool: thread-count: 5 scheduler: instanceName: mailCluster Scheduler instance name is used in different tables in SCHED_NAME column. And this is important condition for filtering jobs\triggers at load time from db for the instance.

Related questions

0 votes
    I am using quartz scheduler in gwt web application.My application structure is like below. I have two ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    If only one 'Consumer Group' subscribed for a topic and there are lots of consumers in this Consumer Group, messages ... group. This is (1)Queuing model (2)Publish-Subscribe model...
asked Jun 17, 2021 in Technology by JackTerrance
0 votes
    The optical computers are increasingly accessing our real-world data to build products that show commercial value ... 50% Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    My goal here is to delete the correspondent data in mysql db table using AJAX. So I've generated a table with several rows and want to a non specific row... PHP Code:...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    MapReduce jobs submitted from either Oozie, Pig or Hive can be used to encode, improve and sample the data sets ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Can you define a variable which can be accessed from multiple Jobs?...
asked Mar 18, 2021 in Technology by JackTerrance
0 votes
    *Updated with more relevant code. *Updated again: removing chart groupings results in this error: "Unable to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 1, 2022 in Education by JackTerrance
0 votes
    Suppose I have a model Order, which has a column num -- an order number. Now I want to filter ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    In the Django model QuerySets, I see that there is a __gt and __lt for comparative values, but is there a __ne/!= ... (a=true, x__gt=5) Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I want to exclude specific participants from a DataFrame and create it from an existing DataFrame. I want a method ... worked for me. Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    How to assign the label 1 to rows which satisfy the below following conditions: If the Word column contains Amber ... it does not work Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    which of the following statement is not true for filtering the data in ms Excel Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
...