private async Task LogCleanupAsync(TaskExecutionCheckpointRequest checkpoint) { try { await _taskExecutionRepository.CheckpointAsync(checkpoint).ConfigureAwait(false); } catch (Exception) { } }
private async Task LogEmptyBlockEventAsync(string taskExecutionId, string appName, string taskName) { var checkPointRequest = new TaskExecutionCheckpointRequest() { TaskExecutionId = taskExecutionId, Message = "No values for generate the block. Emtpy Block context returned.", TaskId = new TaskId(appName, taskName) }; await _taskExecutionRepository.CheckpointAsync(checkPointRequest).ConfigureAwait(false); }
public async Task CheckpointAsync(string checkpointMessage) { if (!IsExecutionContextActive) { throw new ExecutionException(NotActiveMessage); } var request = new TaskExecutionCheckpointRequest() { TaskId = new TaskId(_taskExecutionInstance.ApplicationName, _taskExecutionInstance.TaskName), TaskExecutionId = _taskExecutionInstance.TaskExecutionId, Message = checkpointMessage }; await _taskExecutionRepository.CheckpointAsync(request).ConfigureAwait(false); }