Added endpoints for retrying failed media processing, allowing users to requeue media assets that encountered errors. Introduced error messages for scenarios where a media asset cannot be retried due to its status. Updated the MaintenanceBackgroundService to remove orphaned episodes and recompute group statistics, ensuring data integrity. Enhanced the frontend to support retry actions, including bulk retry options for failed media. Updated localization strings to reflect new features in both English and Russian.
12 lines
571 B
C#
12 lines
571 B
C#
using LiteCqrs;
|
|
using TeleWave.Application.Common.Models;
|
|
|
|
namespace TeleWave.Application.Media.Retry;
|
|
|
|
/// <summary>
|
|
/// Вернуть упавшую обработку в очередь. <paramref name="Id"/> = null — все упавшие разом: падают
|
|
/// они обычно пачкой и по одной причине (кончилось место, ffmpeg упёрся в таймаут), и чинят их
|
|
/// тоже пачкой.
|
|
/// </summary>
|
|
public sealed record RetryMediaCommand(Guid? Id = null) : ICommand<Result<RetryMediaResultDto>>;
|