This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a task starts it calls SubscribeDeps on control to prepare any plugins it may need. Previously, SubscribeDeps emitted events which were picked up by the runner, who then started the plugins. This occasionally resulted in an error starting the task, because the async process of starting the needed plugins had not completed yet. This was especially true with tasks with very small intervals, <250ms for example. This commit causes SubscribeDeps to first subscribe, then check that the pool is eligible. If it is, then it runs a plugin directly. The runner no longer handles `PluginSubscriptionEvent`.
- Loading branch information
Showing
3 changed files
with
29 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters