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

feat: update worker watcher to "pack" i.e. leverage as many cores as the pod/machine provides #552

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

starpit
Copy link
Member

@starpit starpit commented Nov 18, 2024

Also adds a --pack build option

// Run k concurrent tasks; if k=0 and machine has N cores, then k=N
Pack int `yaml:",omitempty"`

Fixes #25

Notes

python-language-pdf2parquet currently requires --pack=1 due to JaidedAI/EasyOCR#1335

Maybe we can add some kind of lockfile support to help out the workers. Though they would still need to do the fcntl themselves.

@starpit starpit force-pushed the pack branch 5 times, most recently from 7b34bae to 4b2fc81 Compare November 18, 2024 21:34
…the pod/machine provides

Also adds a `--pack` build option

```go
// Run k concurrent tasks; if k=0 and machine has N cores, then k=N
Pack int `yaml:",omitempty"`
```

Fixes IBM#25

Signed-off-by: Nick Mitchell <[email protected]>
@starpit starpit changed the title feat: update worker watcher to "pack" i.e. leverage as many cores as … feat: update worker watcher to "pack" i.e. leverage as many cores as the pod/machine provides Nov 18, 2024
@starpit starpit merged commit c4c7439 into IBM:main Nov 18, 2024
21 checks passed
@starpit starpit deleted the pack branch November 18, 2024 22:02
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.

[worker] pods must process multiple tasks in parallel depending on resources (pod packing)
1 participant