acaloiaro / neoq

Queue-agnostic background job library for Go, with a pleasant API and powerful features.
MIT License
270 stars 4 forks source link

consider performance implications of `scheduleFutureJobs` in PgBackend #17

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

https://github.com/acaloiaro/neoq/blob/a024be6a3953a1512a1accee11bd296e6869c338/postgres_backend.go#L539


    pendingJobsChan := w.pendingJobs(ctx, queue) // process overdue jobs *at startup*

    // process all future jobs and retries
    // TODO consider performance implications of `scheduleFutureJobs` in PgBackend
    go func() { w.scheduleFutureJobs(ctx, queue) }()

    for i := 0; i < handler.concurrency; i++ {
github-actions[bot] commented 1 year ago

Closed in eb430e944446542dd3ffe097d594d98aefb153e1