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

Only attempt to flush queue if the underlying worker pool is not finished (#18593) #18620

Merged
merged 6 commits into from
Feb 6, 2022

Commits on Feb 5, 2022

  1. Only attempt to flush queue if the underlying worker pool is not fini…

    …shed (go-gitea#18593)
    
    Backport go-gitea#18593
    
    There is a possible race whereby a worker pool could be cancelled but yet the
    underlying queue is not empty. This will lead to flush-all cycling because it
    cannot empty the pool.
    
    * On shutdown of Persistant Channel Queues close datachan and empty
    
    Partial Backport go-gitea#18415
    
    Although we attempt to empty the datachan in queues - due to
    races we are better off just closing the channel and forcibly emptying
    it in shutdown.
    
    Fix go-gitea#18618
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Feb 5, 2022
    Configuration menu
    Copy the full SHA
    543bae4 View commit details
    Browse the repository at this point in the history
  2. Move zero workers warning to debug

    Fix go-gitea#18617
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Feb 5, 2022
    Configuration menu
    Copy the full SHA
    cce894c View commit details
    Browse the repository at this point in the history
  3. Update modules/queue/manager.go

    Co-authored-by: Gusted <williamzijl7@hotmail.com>
    zeripath and Gusted committed Feb 5, 2022
    Configuration menu
    Copy the full SHA
    2f6d175 View commit details
    Browse the repository at this point in the history
  4. Update modules/queue/manager.go

    Co-authored-by: Gusted <williamzijl7@hotmail.com>
    zeripath and Gusted committed Feb 5, 2022
    Configuration menu
    Copy the full SHA
    fd945e5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dfbb92f View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2022

  1. Configuration menu
    Copy the full SHA
    db2789f View commit details
    Browse the repository at this point in the history