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

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

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