mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed some of the issues with the new scheduler not firing correctly
This commit is contained in:
parent
fdad3a564c
commit
ad6c72f12a
3 changed files with 3 additions and 4 deletions
|
@ -218,7 +218,7 @@
|
||||||
/// <param name="interval">The number of minutes to wait between every activation.</param>
|
/// <param name="interval">The number of minutes to wait between every activation.</param>
|
||||||
public static string MinuteInterval(int interval)
|
public static string MinuteInterval(int interval)
|
||||||
{
|
{
|
||||||
return $" 0 0/{interval} * 1/1 * ? *";
|
return $"0 0/{interval} * 1/1 * ? *";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -81,8 +81,7 @@ namespace Ombi.Schedule
|
||||||
private static async Task AddPlex(JobSettings s)
|
private static async Task AddPlex(JobSettings s)
|
||||||
{
|
{
|
||||||
await OmbiQuartz.Instance.AddJob<IPlexContentSync>(nameof(IPlexContentSync), "Plex", JobSettingsHelper.PlexContent(s), new Dictionary<string, string> { { "recentlyAddedSearch", "false" } });
|
await OmbiQuartz.Instance.AddJob<IPlexContentSync>(nameof(IPlexContentSync), "Plex", JobSettingsHelper.PlexContent(s), new Dictionary<string, string> { { "recentlyAddedSearch", "false" } });
|
||||||
await OmbiQuartz.Instance.AddJob<IPlexContentSync>(nameof(IPlexContentSync) + "RecentlyAdded", "Plex", JobSettingsHelper.PlexContent(s), new Dictionary<string, string> { { "recentlyAddedSearch", "true" } });
|
await OmbiQuartz.Instance.AddJob<IPlexContentSync>(nameof(IPlexContentSync) + "RecentlyAdded", "Plex", JobSettingsHelper.PlexRecentlyAdded(s), new Dictionary<string, string> { { "recentlyAddedSearch", "true" } });
|
||||||
await OmbiQuartz.Instance.AddJob<IPlexRecentlyAddedSync>(nameof(IPlexRecentlyAddedSync), "Plex", JobSettingsHelper.PlexRecentlyAdded(s));
|
|
||||||
await OmbiQuartz.Instance.AddJob<IPlexUserImporter>(nameof(IPlexUserImporter), "Plex", JobSettingsHelper.UserImporter(s));
|
await OmbiQuartz.Instance.AddJob<IPlexUserImporter>(nameof(IPlexUserImporter), "Plex", JobSettingsHelper.UserImporter(s));
|
||||||
await OmbiQuartz.Instance.AddJob<IPlexEpisodeSync>(nameof(IPlexEpisodeSync), "Plex", null);
|
await OmbiQuartz.Instance.AddJob<IPlexEpisodeSync>(nameof(IPlexEpisodeSync), "Plex", null);
|
||||||
await OmbiQuartz.Instance.AddJob<IPlexAvailabilityChecker>(nameof(IPlexAvailabilityChecker), "Plex", null);
|
await OmbiQuartz.Instance.AddJob<IPlexAvailabilityChecker>(nameof(IPlexAvailabilityChecker), "Plex", null);
|
||||||
|
|
|
@ -142,7 +142,7 @@ namespace Ombi.Controllers
|
||||||
[HttpPost("newsletter")]
|
[HttpPost("newsletter")]
|
||||||
public async Task<bool> StartNewsletter()
|
public async Task<bool> StartNewsletter()
|
||||||
{
|
{
|
||||||
await OmbiQuartz.TriggerJob(nameof(INewsletterJob), "Emby");
|
await OmbiQuartz.TriggerJob(nameof(INewsletterJob), "System");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue