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

Update mp for fast pull #201

Merged
merged 9 commits into from
Apr 23, 2024
Merged

Update mp for fast pull #201

merged 9 commits into from
Apr 23, 2024

Conversation

kyocum
Copy link
Owner

@kyocum kyocum commented Jan 11, 2024

This PR removes the use of multiprocessing in favor of multithreading. There were instances where using multiprocessing was problematic in containers (e.g., getting an accurate cpu count as well as memory issues). In all cases we were more interested in concurrency than parallelism (using multithreading for I/O for managing keys on s3) .

This is a relatively major change internally for many of the s3 related functions, but it should not affect common users. Users can still set the env variable DISDAT_CPU_COUNT and the system will create thread pools with exactly that number of threads. Otherwise it will use the system cpu count and set threads = 2* that amount.

In addition, this removes six.moves.urllib dependencies and removes a number of print statements in lieu of logger.info() calls (useful for those using the API instead of the CLI).

Ken Yocum and others added 9 commits January 11, 2024 13:30
commit caaee36
Merge: b4eb584 63183d1
Author: Kenneth <[email protected]>
Date:   Sat Mar 9 13:55:30 2024 -0800

    Merge pull request #203 from kyocum/fix/new-lib-versions

    Update library dependencies
    isort / black

commit b4eb584
Merge: 7d6a1d5 39cb9a5
Author: Kenneth <[email protected]>
Date:   Fri Mar 8 17:04:49 2024 -0800

    Merge pull request #202 from pmdaly/restrict-python-version
    Restrict python version

commit 39cb9a5
Author: pmdaly <[email protected]>
Date:   Fri Mar 1 12:23:48 2024 -0800

    Update tox.ini

commit d96fdc8
Author: pmdaly <[email protected]>
Date:   Fri Mar 1 12:23:06 2024 -0800

    enforce a range in setup
* enforce a range in setup

* Update tox.ini

* removing six

* bumping to pandas 2.x

* fix comment

* isort / black

---------

Co-authored-by: pmdaly <[email protected]>
Co-authored-by: Ken Yocum <[email protected]>
@kyocum kyocum linked an issue Apr 23, 2024 that may be closed by this pull request
@kyocum kyocum merged commit 32d8b9e into develop Apr 23, 2024
@kyocum kyocum deleted the feature/asyncio branch June 25, 2024 23:19
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.

remove print statements in favor of logging
1 participant