Skip to content

Lookup submision IDs by strategic metadata#112

Open
jerbaroo wants to merge 7 commits into
masterfrom
jerbaroo-64-lookup-by-strategic-metadata
Open

Lookup submision IDs by strategic metadata#112
jerbaroo wants to merge 7 commits into
masterfrom
jerbaroo-64-lookup-by-strategic-metadata

Conversation

@jerbaroo
Copy link
Copy Markdown
Contributor

@jerbaroo jerbaroo commented Jun 8, 2026

This PR adds the lookup_submission_ids_by_strategic_metadata method to ProducerClient, which will return the submission IDs of in-progress subsmissions that match ALL of the provided strategic metadata key-value pairs.

    def lookup_submission_ids_by_strategic_metadata(
        self, strategic_metadata: dict[str, int]
    ) -> list[SubmissionId]:
        """Attempts to find in-progress submissions where the strategic metadata
        of that submission includes all of the key-value pairs of the given
        'strategic_metadata'. A matching submission must include all of the
        given key-value pairs, but it may also contain other key-value pairs.

        Raises:
        - `LookupIdsWithEmptyStrategicMetadataError` if the provided
          'strategic_metadata' contained no key-value pairs to look for.

        """

@jerbaroo jerbaroo requested a review from Qqwy June 8, 2026 15:58
@jerbaroo jerbaroo force-pushed the jerbaroo-64-lookup-by-strategic-metadata branch from 3b0ca52 to 6f9e1e3 Compare June 8, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support checking whether a submission currently exists in the queue for a particular piece of strategic metadata

1 participant