mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschränkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using NodaTime;
|
|
using Squidex.Domain.Apps.Core.Rules;
|
|
using Squidex.Infrastructure;
|
|
|
|
namespace Squidex.Domain.Apps.Entities.Rules.Repositories
|
|
{
|
|
public interface IRuleEventRepository
|
|
{
|
|
Task UpdateAsync(RuleJob job, RuleJobUpdate update);
|
|
|
|
Task EnqueueAsync(RuleJob job, Instant? nextAttempt, CancellationToken ct = default);
|
|
|
|
Task EnqueueAsync(Guid id, Instant nextAttempt);
|
|
|
|
Task CancelAsync(Guid id);
|
|
|
|
Task QueryPendingAsync(Instant now, Func<IRuleEventEntity, Task> callback, CancellationToken ct = default);
|
|
|
|
Task<IReadOnlyList<RuleStatistics>> QueryStatisticsByAppAsync(Guid appId);
|
|
|
|
Task<IResultList<IRuleEventEntity>> QueryByAppAsync(Guid appId, Guid? ruleId = null, int skip = 0, int take = 20);
|
|
|
|
Task<IRuleEventEntity> FindAsync(Guid id);
|
|
}
|
|
}
|
|
|