File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/providers/WorkflowCore.Persistence.MongoDB/Services Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,10 @@ static void CreateIndexes(MongoPersistenceProvider instance)
93
93
if ( ! indexesCreated )
94
94
{
95
95
instance . WorkflowInstances . Indexes . CreateOne ( new CreateIndexModel < WorkflowInstance > (
96
- Builders < WorkflowInstance > . IndexKeys . Ascending ( x => x . NextExecution ) ,
97
- new CreateIndexOptions { Background = true , Name = "idx_nextExec" } ) ) ;
96
+ Builders < WorkflowInstance > . IndexKeys
97
+ . Ascending ( x => x . NextExecution )
98
+ . Ascending ( x => x . Status ) ,
99
+ new CreateIndexOptions { Background = true , Name = "idx_nextExec_v2" } ) ) ;
98
100
99
101
instance . Events . Indexes . CreateOne ( new CreateIndexModel < Event > (
100
102
Builders < Event > . IndexKeys . Ascending ( x => x . IsProcessed ) ,
You can’t perform that action at this time.
0 commit comments