Quartz Cron Created But not visible

Hi,

I had created 40 crons classes in my project but from past few days only 15 crons are only visible on UI.
But in database 40 crons are visible.

select * from qrtz_job_details

quartz

Hello Adnan.

  1. What is your Jmix version?
  2. How did you create your jobs? In runtime via Jmix UI or in code via Quartz API? If you use both approach - jobs with what origin are missing?
  3. Am I right that all those jobs were previously visible?
  4. Did they all disappear at different times or all at once?
  5. Can you provide content of qrtz_job_details table? And list of visible jobs.

Regards,
Ivan

1 .Jmix Version : 1.5.0

2 . Jobs are created from frontend from quartz job menu.

  1. Jobs are visible in database but if i deploy multiple project pointing to same database in one project only partial crons are displayed.

image

image

Hi,

I had observed that if i deploy 2 scheduler and first scheduler is having all code of quartz job which was created for example 37.

and if if deploy second scheduler which had only limited code of quartz job for example 3 quartz is job code is not present then second scheduler will randomly display 15 job only instead it must exclude the 3 job only.

Scenarion 2 :
If i undeploy both scheduler and only try to deploy second scheduler with limited jobs code it will throw error as Couldn't retrieve job because a required class was not found: but if i deploy in parallel it works.

I think if code is not present it should exclude and run or else if i want to disable the job instead of removing is there any option or database query.

Hi,

Am I right, you have 2 Jmix applications sharing the same database? And “deploy scheduler” means run some of them?
If so yes, there is an issue with Quartz - it hides jobs it is unable to load because of problem with job class so it’s unable to do anything with them in UI - Ability to remove Quartz jobs with invalid class name · Issue #1669 · jmix-framework/jmix · GitHub

We will try to figure out what can be done manually as a hot fix.

1 Like