| 1 | package edu.ucsb.cs156.frontiers.jobs; | |
| 2 | ||
| 3 | import edu.ucsb.cs156.frontiers.entities.Course; | |
| 4 | import edu.ucsb.cs156.frontiers.services.UpdateUserService; | |
| 5 | import edu.ucsb.cs156.frontiers.services.jobs.JobContext; | |
| 6 | import edu.ucsb.cs156.frontiers.services.jobs.JobContextConsumer; | |
| 7 | import lombok.Builder; | |
| 8 | ||
| 9 | @Builder | |
| 10 | public class UpdateAllJob implements JobContextConsumer { | |
| 11 | ||
| 12 | private final UpdateUserService updateUserService; | |
| 13 | ||
| 14 | @Override | |
| 15 | public Course getCourse() { | |
| 16 | return null; | |
| 17 | } | |
| 18 | ||
| 19 | @Override | |
| 20 | public void accept(JobContext ctx) throws Exception { | |
| 21 | ctx.log("Processing..."); | |
| 22 |
1
1. accept : removed call to edu/ucsb/cs156/frontiers/services/UpdateUserService::attachRosterStudentsAllUsers → KILLED |
updateUserService.attachRosterStudentsAllUsers(); |
| 23 | ctx.log("Done"); | |
| 24 | } | |
| 25 | } | |
Mutations | ||
| 22 |
1.1 |