add weekly schedulded task that calculates weekly mobility statistics for each user that made a trip in that week -> basis for deteting trend changes in mobility behaviour
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package SuMoC.backend.scheduling;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "sumoc.scheduling")
|
||||
@Getter
|
||||
@Setter
|
||||
public class SchedulingProperties {
|
||||
private int poolSize = 5;
|
||||
private String calculateWeeklyMobilityStats = "1 30 0 * * 1"; // Once per week
|
||||
}
|
||||
Reference in New Issue
Block a user