Skip to content

Add demo of job scheduling using quartz#2

Open
robjwilkins wants to merge 1 commit intomainfrom
add_quartz
Open

Add demo of job scheduling using quartz#2
robjwilkins wants to merge 1 commit intomainfrom
add_quartz

Conversation

@robjwilkins
Copy link
Owner

The GreetingController is extended, so it now allows a POST which schedules a job to
run at a set frequency. The job just logs the Greeting to the console

Quartz is a framework which allows Jobs to be scheduled to run asynchronously, at a fixed
frequency or point in time. This is useful if youo want to allow the API user to
schedule a task to be performed at a set point in the future

The job schedule is persisted in a postgres database, so they will live beyond the lifespan
of an application run. I.e. the application can be restarted, and the running jobs will
restart.

Jira: n/a

The GreetingController is extended, so it now allows a POST which schedules a job to
run at a set frequency. The job just logs the Greeting to the console

Quartz is a framework which allows Jobs to be scheduled to run asynchronously, at a fixed
frequency or point in time. This is useful if you want to allow the API user to
schedule a task to be performed at a set point in the future

The job schedule is persisted in an h2 database, so they will live beyond the lifespan
of an application run. I.e. the application can be restarted, and the running jobs will
restart. The database schema is created using Flyway

Jira: n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant