Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 23, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/alitto/pond v1.9.2 -> v2.5.0 age adoption passing confidence

Release Notes

alitto/pond (github.com/alitto/pond)

v2.5.0

Compare Source

What's Changed

New Contributors

Full Changelog: alitto/pond@v2.4.0...v2.5.0

v2.4.0

Compare Source

What's Changed

Full Changelog: alitto/pond@v2.3.4...v2.4.0

v2.3.4

Compare Source

What's Changed

Full Changelog: alitto/pond@v2.3.3...v2.3.4

v2.3.3

Compare Source

What's Changed

Full Changelog: alitto/pond@v2.3.2...v2.3.3

v2.3.2

Compare Source

What's Changed

Full Changelog: alitto/pond@v2.3.1...v2.3.2

v2.3.1

Compare Source

Pull requests

  • fix(pool): avoid race conditions when a task is submitted while the pool is stopping by @​alitto in #​105
  • feat(pool): add non-blocking submission methods and dropped tasks metric by @​alitto in #​107

Changes

  • Ensure closed atomic bool is toggled and checked while holding the mutex to avoid race conditions.
  • Ensure workersWaitGroup.Add() is always called while holding the mutex to avoid race conditions.
  • Improve comments on submit methods to clarify the behavior when the pool is stopped.
  • Refactor trySubmit method to make it simpler and more clear.
  • Centralize worker launch in a new method called launchWorker.
  • Replace subpoolSubmit with subpoolWorker method.
  • Add methods to submit individual tasks in a non-blocking fashion (TrySubmit and TrySubmitErr). Requested in #​103
  • Expose new DroppedTasks metric that reflects the number of tasks that were not executed because the queue was full. Issue reported in #​100
  • SubmittedTasks metric now includes dropped tasks and it stops being updated once the pool is stopped.

Fixes

  • Decrement workerCount counter when the pool context is cancelled.
  • Resize() now supports setting maxConcurrency to 0 (no limit)

Full Changelog: alitto/pond@v2.3.0...v2.3.1

v2.3.0

Compare Source

What's Changed

  • feat(pool): add support for dynamically adjusting max concurrency by @​alitto in #​102

Full Changelog: alitto/pond@v2.2.0...v2.3.0

v2.2.0

Compare Source

What's Changed

  • feat(pool): add option to bound task queue (v2) by @​alitto in #​99
    • Add support to create bounded pools by specifying a queue size (WithQueueSize option).
    • Add support to choose how to deal with tasks submitted when the queue is full (WithNonBlocking option).
    • Ensure RunningWorkers() method in subpools reflect the actual number of workers running tasks belonging to the subpool.
    • Allow overriding pool options when creating a subpool via NewSupool.
    • Simplify pool submission logic and remove dispatcher goroutine.
    • Simplify subpool implementation.

Full Changelog: alitto/pond@v2.1.6...v2.2.0

v2.1.6

Compare Source

What's Changed

New Contributors

Full Changelog: alitto/pond@v2.1.5...v2.1.6

v2.1.5

Compare Source

What's Changed

New Contributors

Full Changelog: alitto/pond@v2.1.4...v2.1.5

v2.1.4

Compare Source

What's Changed

  • fix(dispatcher): ensure workers exit reliably when worker count is low by @​alitto in #​86

Full Changelog: alitto/pond@v2.1.3...v2.1.4

v2.1.3

Compare Source

What's Changed

Full Changelog: alitto/pond@v2.1.2...v2.1.3

v2.1.2

Compare Source

What's Changed

Full Changelog: alitto/pond@v2.1.1...v2.1.2

v2.1.1

Compare Source

What's Changed

  • feat(taskgroup): wait for ongoing tasks complete when group is stopped or context is cancelled by @​alitto in #​82

Full Changelog: alitto/pond@v2.1.0...v2.1.1

v2.1.0

Compare Source

What's Changed

  • feat(taskgroup): improve task group functionality by @​alitto in #​81
    • Added a new method to the pool to create a task group associated with a context (pool.NewGroupContext(ctx))
    • Added new methods to task groups:
      • group.Done(): returns a channel that is closed when all tasks in the group finish or the first error is returned.
      • group.Stop(): stops the task group. Queued tasks will be discarded but running tasks will complete their execution.
    • Added a new example showcasing the new pool.NewGroupContext(ctx) method.

Full Changelog: alitto/pond@v2.0.4...v2.1.0

v2.0.4

Compare Source

What's Changed

Full Changelog: alitto/pond@v2.0.3...v2.0.4

v2.0.3

Compare Source

What's Changed

  • fix(taskgroups): do not start remaining tasks after context cancellation by @​alitto in #​77

Full Changelog: alitto/pond@v2.0.2...v2.0.3

v2.0.2

Compare Source

Changes

  • Expose Stopped() bool method in pools to indicate whether the pool has been stopped or its associated context has been cancelled.

Fixes

  • Ensure ErrPoolStopped error is always returned when attempting to submit a task to a pool that has been stopped or its associated context cancelled.

v2.0.1

Compare Source

Fixes

  • Avoid launching workers that exit immediately without running any tasks.
  • Prevent task group Wait() from returning eagerly when tasks are executed before submitting the last one of the group.

v2.0.0

Compare Source

What's new in v2?

Version 2 of pond introduces many improvements and new features:

  • Unbounded Task Queues: Task queues are now unbounded by default, simplifying pool creation.
  • Task Submission with Results: New APIs allow tasks to return results, enhancing flexibility.
  • Awaitable Task Completion: Tasks can now be awaited, providing better control over task execution.
  • Type Safe APIs: Improved type safety for tasks that return errors or results.
  • Panics Recovery: Panics during task execution are captured and returned as errors, allowing graceful error handling.
  • Subpools: Create subpools with a fraction of the parent pool's workers for specific tasks.
  • Default Pool: A global default pool is available for task submission without explicit pool creation.
Migration from v1 to v2

There have been a significant number of breaking changes in v2, so please make sure to read the migration guide if you are upgrading from v1.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner October 23, 2024 03:16
@renovate renovate bot added the gomod label Oct 23, 2024
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch 3 times, most recently from f1abe04 to 649dba0 Compare October 27, 2024 15:40
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch from 649dba0 to d671c39 Compare November 1, 2024 12:28
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch 4 times, most recently from 7fc639c to 4229c33 Compare November 19, 2024 00:50
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch 2 times, most recently from 845b015 to 1de1d1c Compare December 2, 2024 20:07
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch from 1de1d1c to 51ac4d1 Compare December 16, 2024 21:41
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch from 51ac4d1 to 0754ae7 Compare December 29, 2024 00:40
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch from 0754ae7 to 26bed21 Compare February 20, 2025 02:34
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch 2 times, most recently from c44a048 to ac99942 Compare March 12, 2025 15:10
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch from ac99942 to 17926f6 Compare March 26, 2025 15:53
@renovate
Copy link
Contributor Author

renovate bot commented Mar 26, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go install github.com/marwan-at-work/mod/cmd/mod@latest
go: downloading github.com/marwan-at-work/mod v0.9.0
go: github.com/marwan-at-work/[email protected] requires go >= 1.23.0; switching to go1.24.8
go: downloading go1.24.8 (linux/amd64)
go: download go1.24.8: golang.org/[email protected]: verifying module: checksum database disabled by GOSUMDB=off

@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch 2 times, most recently from 72108af to 4402e0c Compare April 7, 2025 23:15
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch 2 times, most recently from 5e85c02 to e3800bc Compare April 23, 2025 19:37
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch from e3800bc to ac1d83c Compare June 23, 2025 17:31
@renovate renovate bot force-pushed the renovate/github.com-alitto-pond-2.x branch from ac1d83c to 5632bac Compare July 16, 2025 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant