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

Set MAX_DB_WORKER limit in local_run #743

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

evansd
Copy link
Contributor

@evansd evansd commented Sep 27, 2024

We allow the user to set the number of concurrent jobs using the --concurrency argument and use this to update the worker limit, but we didn't update the database worker limit.

The distinction is meaningless for local jobs in any case because these jobs are just generating dummy data, but it meant that jobs ran with less parallelism than expected. It also lead to "Waiting on available database workers" messages appearing in the log output which caused confusion and anxiety.

@evansd
Copy link
Contributor Author

evansd commented Sep 27, 2024

After this is merged and a new PyPI package published we'll need to update the vendored version in opensafely-cli and release a new version of that.


Update: now done

@evansd
Copy link
Contributor Author

evansd commented Sep 27, 2024

I think failures are related to the issue Simon is battling at the moment, see:
https://bennettoxford.slack.com/archives/C069YDR4NCA/p1727436683675039

Once a fix for that is out I'll rebase this PR.

@madwort madwort mentioned this pull request Sep 27, 2024
We allow the user to set the number of concurrent jobs using the
`--concurrency` argument and use this to update the worker limit, but we
didn't update the database worker limit.

The distinction is meaningless for local jobs in any case because these
jobs are just generating dummy data, but it meant that jobs ran with
less parallelism than expected. It also lead to "Waiting on available
database workers" messages appearing in the log output which caused
confusion and anxiety.
@evansd evansd force-pushed the evansd/local-run-db-workers branch from c2b806a to e9be162 Compare October 1, 2024 13:24
@evansd evansd enabled auto-merge October 1, 2024 13:25
@evansd evansd merged commit c100586 into main Oct 1, 2024
18 checks passed
@evansd evansd deleted the evansd/local-run-db-workers branch October 1, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants