Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to remove Quartz jobs with invalid class name #1669

Closed
gorbunkov opened this issue May 3, 2023 · 2 comments
Closed

Ability to remove Quartz jobs with invalid class name #1669

gorbunkov opened this issue May 3, 2023 · 2 comments

Comments

@gorbunkov
Copy link
Contributor

  1. Create several job classes in your application.
  2. Manually add several quartz jobs using the "Quartz jobs" screen.
  3. Delete one of job classes.
  4. Restart the app and open the Quartz Jobs screen

After fixes made in #1551 invalid quartz jobs won't be displayed, but valid jobs will. For invalid job we'll have a warning message in the log.

It would be great if we could see invalid jobs in the Jobs list with some marker indicating that these jobs are invalid. Also users should be able to remove such jobs.

@SergeiAksenov2
Copy link

SergeiAksenov2 commented Apr 26, 2024

Tested on:
Jmix version: 2.3.999-SNAPSHOT
Jmix Studio plugin version: 2.3.SNAPSHOT6350-233
IntelliJ version: IntelliJ IDEA 2023.3.6 (Community Edition)

Failed - Unexpected error, NPE in entity.getJobState()

Job class is created. And after clicking in button Ok:

image

there is NPE

image

In java code:

image

Logs:
Job NPE log -create new job - JobModelListView_java.txt

Job working without error on the configuration:
Jmix version: 2.2.1
Jmix Studio plugin version: 2.3.SNAPSHOT6350-233
IntelliJ version: IntelliJ IDEA 2023.3.6 (Community Edition)

@SergeiAksenov2
Copy link

SergeiAksenov2 commented Apr 27, 2024

Tested on Java:

  1. Jmix version: 2.3.999-SNAPSHOT
    Jmix Studio plugin version: 2.3.SNAPSHOT6350-233
    IntelliJ version: IntelliJ IDEA 2023.3.6 (Community Edition)
  2. Jmix version: 2.3.999-SNAPSHOT
    Jmix Studio plugin version: 2.3.SNAPSHOT6351-241
    IntelliJ version: IntelliJ IDEA 2024.1 (Community Edition)

Description is updated, the job can be deleted:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants