In this lab, you will learn how to register a task application named sprinkler_report. You will learn how to create a definition for the application, as well as launch the definition, monitor the execution, and schedule a launch for the task definition. The sprinkler-report application will read from the weather_data
table and the sensor_state
table to generate a descriptive state of the sensor for each date and insert the results into a new sprinkler_report
table.
-
SprinklerReportApplication - the Spring Boot Main Application
-
SprinklerReportConfiguration - the configuration that enables Spring Cloud Task and defines the batch job for processing the data.