Skip to content

Commit

Permalink
fix: midway-schedule can't find schedule by key (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
roy2an authored Sep 2, 2021
1 parent f43ea42 commit 1c256f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/midway-schedule/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export = agent => {
}

const instance = new Strategy(opts, agent, key);
agent.schedule[STRATEGY_INSTANCE].set(key, instance);
instance.start();
}
});
Expand Down

0 comments on commit 1c256f2

Please sign in to comment.