Skip to content

Commit

Permalink
Expose total variables for use in testing scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 15, 2021
1 parent 908382b commit c58d84e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions osu.Server.QueueProcessor/QueueProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ namespace osu.Server.QueueProcessor
{
public abstract class QueueProcessor<T> where T : QueueItem
{
/// <summary>
/// The total queue items processed since startup.
/// </summary>
public long TotalProcessed => totalProcessed;

/// <summary>
/// The total queue items dequeued since startup.
/// </summary>
public long TotalDequeued => totalDequeued;

/// <summary>
/// The total errors encountered processing items since startup.
/// </summary>
/// <remarks>
/// Note that this may include more than one error from the same queue item failing multiple times.
/// </remarks>
public long TotalErrors => totalErrors;

/// <summary>
/// Report statistics about this queue via datadog.
/// </summary>
Expand Down

0 comments on commit c58d84e

Please sign in to comment.