Ejemplo n.º 1
0
        protected async Task QueueTaskAsync(TaskPayload payload)
        {
            await cacheClient.SortedSetUpsertAsync(
                parent.GetQueueNamespace(), payload.GetKey(), payload.TimeEpoch.Seconds);

            await cacheClient.HashUpsertAsync(
                parent.GetObjectNamespace(payload.OwnerId), payload.Uuid, payload);
        }
Ejemplo n.º 2
0
 private async Task RequeueWorkAsync(TaskPayload payload, bool updatePayload)
 {
     if (updatePayload)
     {
         await cacheClient.HashUpsertAsync(
             GetObjectNamespace(payload.OwnerId), payload.Uuid, payload);
     }
     await cacheClient.SortedSetUpsertAsync(
         SchedulerQueueKey, payload.GetKey(), payload.TimeEpoch.Seconds);
 }
Ejemplo n.º 3
0
 private async Task DeletePayloadAsync(TaskPayload payload)
 {
     await cacheClient.HashDeleteAsync(GetObjectNamespace(payload.OwnerId), payload.Uuid);
 }