Content-Length: 309366 | pFad | https://github.com/coder/coder/issues/15843

00 coderd/database: GetProvisionerJobsByIDsWithQueuePosition should take tags into account · Issue #15843 · coder/coder · GitHub
Skip to content

coderd/database: GetProvisionerJobsByIDsWithQueuePosition should take tags into account #15843

@johnstcn

Description

@johnstcn
          We'll need to amend this to take into account matching tags. Queue position could be 1/3 for the provisioners that match, but 20/50 on a larger scale (but that's nonsensical). Do we have an issue that tracks this?

Originally posted by @mafredri in #15835 (comment)

GetProvisionerJobsByIDsWithQueuePosition currently calculates queue position regardless of tag set. We should calculate queue position separately for each tag set in this query.

Note: this gets slightly more complex when we also take into account that tag sets are equivalent regardless of ordering (e.g. {"foo":"1", "bar":"2"} is equivalent to {"bar":"2", "foo":"1"}.

Metadata

Metadata

Labels

need-backendIssues that need backend work

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/coder/coder/issues/15843

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy