Skip to content

Commit

Permalink
Fixed job queue processing order?
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheHyruler committed Sep 28, 2024
1 parent 4544185 commit 0b5cff0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions RescueTube.Core/Jobs/JobQueues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ namespace RescueTube.Core.Jobs;

public static class JobQueues
{
public const string Critical = "priority_critical";
public const string HighPriority = "priority_high";
// Unfortunately queue processing order is storage-specific
// In the case of PostgreSQL, it seems to be alphabetical ascending order?
public const string Critical = "a1000_priority_critical";
public const string HighPriority = "a2000_priority_high";
public const string Default = "default";
public const string LowPriority = "priority_low";
public const string LowerPriority = "priority_lower";
public const string LowPriority = "z1000_priority_low";
public const string LowerPriority = "z2000_priority_lower";

public static string[] Queues = [Critical, HighPriority, Default, LowPriority, LowerPriority];
}

0 comments on commit 0b5cff0

Please sign in to comment.