Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
fix for #112
Browse files Browse the repository at this point in the history
  • Loading branch information
scale-tone committed Aug 2, 2021
1 parent 19f4c83 commit 257e68d
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static IEnumerable<HistoryEvent> GetHistoryDirectlyFromTable(IDurableClie
(
instanceIdFilter,
TableOperators.And,
TableQuery.GenerateFilterCondition("TaskScheduledId", QueryComparisons.NotEqual, null)
TableQuery.GenerateFilterConditionForInt("TaskScheduledId", QueryComparisons.GreaterThanOrEqual, 0)
)
);

Expand All @@ -41,15 +41,7 @@ public static IEnumerable<HistoryEvent> GetHistoryDirectlyFromTable(IDurableClie
.ContinueWith(t => t.Result.ToDictionary(e => e.TaskScheduledId));

// Fetching the history
var query = new TableQuery<HistoryEntity>().Where
(
TableQuery.CombineFilters
(
instanceIdFilter,
TableOperators.And,
TableQuery.GenerateFilterCondition("EventType", QueryComparisons.NotEqual, null)
)
);
var query = new TableQuery<HistoryEntity>().Where(instanceIdFilter);

// Memorizing 'ExecutionStarted' event, to further correlate with 'ExecutionCompleted'
HistoryEntity executionStartedEvent = null;
Expand Down

0 comments on commit 257e68d

Please sign in to comment.