fix: configurable Cron schedules, refs NOISSUE
This commit is contained in:
@@ -33,6 +33,13 @@ public class AppConfiguration
|
||||
CrewGroup = $"cn={userGroupName},ou=groups,dc=disi,dc=dev",
|
||||
ManagerGroup = $"cn={managersGroupName},ou=groups,dc=disi,dc=dev"
|
||||
};
|
||||
|
||||
this.UserCheckTimerSchedule = Environment.GetEnvironmentVariable("USER_CHECK_TIMER_SCHEDULE") ?? "*/1 * * * *";
|
||||
this.LikePlaylistCheckTimerSchedule = Environment.GetEnvironmentVariable("LIKE_PLAYLIST_CHECK_TIMER_SCHEDULE") ?? "*/10 * * * *";
|
||||
this.UserIntroCheckTimerSchedule = Environment.GetEnvironmentVariable("USER_INTRO_TIMER_SCHEDULE") ?? "*/1 * * * *";
|
||||
this.PickOfTheDayCheckTimerSchedule = Environment.GetEnvironmentVariable("PICK_OF_THE_DAY_TIMER_SCHEDULE") ?? "0 8 * * *";
|
||||
this.LdapAssociationTimerSchedule = Environment.GetEnvironmentVariable("LDAP_ASSOCIATION_TIMER_SCHEDULE") ?? "*/10 * * * *";
|
||||
this.MessageSyncTimerSchedule = Environment.GetEnvironmentVariable("MESSAGE_SYNC_TIMER_SCHEDULE") ?? "*/10 * * * *";
|
||||
}
|
||||
|
||||
public string SignalAPIEndpointUri
|
||||
@@ -109,4 +116,34 @@ public class AppConfiguration
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public string UserCheckTimerSchedule
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public string LikePlaylistCheckTimerSchedule
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public string UserIntroCheckTimerSchedule
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public string PickOfTheDayCheckTimerSchedule
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public string LdapAssociationTimerSchedule
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public string MessageSyncTimerSchedule
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user