private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken)
        {
            //TODO: is still needed here?
            await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.RootKey);

            await _triggerIndexer.IndexTriggersAsync(cancellationToken);
        }
Beispiel #2
0
    private async Task IndexTriggersAsync(WorkflowDefinition workflowDefinition, CancellationToken cancellationToken)
    {
        var workflowBlueprint = await TryMaterializeBlueprintAsync(workflowDefinition, cancellationToken);

        if (workflowBlueprint != null)
        {
            await _triggerIndexer.IndexTriggersAsync(workflowBlueprint, cancellationToken);
        }
    }
Beispiel #3
0
 public async Task ExecuteAsync(CancellationToken cancellationToken = default)
 {
     await _triggerIndexer.IndexTriggersAsync(cancellationToken);
 }
Beispiel #4
0
 private async Task HandleWorkflowCacheAndTriggerIndexer(CancellationToken cancellationToken)
 {
     await _cacheSignal.TriggerTokenAsync(CachingWorkflowRegistry.CacheKey);
     await _triggerIndexer.IndexTriggersAsync(cancellationToken);
 }