acaloiaro / neoq

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

Give more thought to the implications of hijacking connections to LISTEN on in P... #16

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

should this connecton not come from the pool, to avoid tainting it with connections that don't have an idle in

transaction time out set?

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


    }

    // use a single connection to listen for jobs on all queues
    // TODO: Give more thought to the implications of hijacking connections to LISTEN on in PgBackend
    // should this connecton not come from the pool, to avoid tainting it with connections that don't have an idle in
    // transaction time out set?
    w.mu.Lock()
    if w.listenConn == nil {