Skip to content

jobrunr/example-java-mag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

An example on how to use JobRunr for Java Magazine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages