Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.59 KB

README.md

File metadata and controls

22 lines (18 loc) · 1.59 KB

JobRunr example

This repository shows a simple example on how you can integrate JobRunr with spring.io. In this example, Jobs are created via a web frontend.

A more advanced example using spring.io can be found here

About this project

This project has 2 packages:

  • org.jobrunr.examples.services: this project contains SampleJobService, a simple spring service with examples methods which you want to run in a backgroundserver.
    • Note that the method annotated with @Recurring will be automatically picked up by JobRunr and run every 2 minutes (specified by the cron parameter)
  • org.jobrunr.examples.api: It contains a simple RestController called JobController which contains some methods (= endpoints) to enqueue, schedule, or delete jobs.

How to run this project: