Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job Array with queueSize exceeds queueSize #5920

Open
Joon-Klaps opened this issue Mar 25, 2025 · 1 comment
Open

Job Array with queueSize exceeds queueSize #5920

Joon-Klaps opened this issue Mar 25, 2025 · 1 comment
Assignees
Labels

Comments

@Joon-Klaps
Copy link

Joon-Klaps commented Mar 25, 2025

When combining both executor.queueSize and process.array , I’m reguraly surpassing the executor.queueSize limit is this because the array jobs are seen as a single job?

For example:

process.array = 30
executor.queueSize = 40

The total amount of concurrent jobs running can exceed 60.

Would it be possible to have more control over this?

@bentsherman
Copy link
Member

Good catch. I thought we handled this case when we released it but maybe it got lost in some refactoring.

The task polling monitor needs to consider the job array size when deciding whether it can submit a task:

protected boolean canSubmit(TaskHandler handler) {
(capacity>0 ? runningQueue.size() < capacity : true) && handler.canForkProcess() && handler.isReady()
}

@jorgee can you write a fix for this when you have time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants