Esempio 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);
        }
Esempio 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);
 }
Esempio n. 3
0
 private async Task DeletePayloadAsync(TaskPayload payload)
 {
     await cacheClient.HashDeleteAsync(GetObjectNamespace(payload.OwnerId), payload.Uuid);
 }