Skip to content

Commit

Permalink
feat: expose the current concurrency setting value
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 10, 2020
1 parent 0a0a992 commit 6fc348f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/factories/createPlanton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ type ErrorEvent = {

/**
* @property activeTaskInstructions A list of active task instructions as retrieved using `getActiveTaskInstructions`.
* @property concurrency Concurrency setting value.
* @property limit A limit derived based on the value of `concurrency` and the number of `activeTaskInstructions` (CONCURRENCY - ACTIVE TASK INSTRUCTIONS = LIMIT).
*/
type ScheduleConfiguration = {
readonly activeTaskInstructions: TaskInstruction[];
readonly concurrency: number;
readonly limit: number;
};

Expand Down Expand Up @@ -167,6 +169,7 @@ const createPlanton = (configuration: PlantonConfiguration): Planton => {
try {
taskInstructions = await inputTask.schedule({
activeTaskInstructions,
concurrency,
limit,
});
} catch (error) {
Expand Down

0 comments on commit 6fc348f

Please sign in to comment.