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

List Engine jobs #3322

Merged
merged 7 commits into from
Sep 16, 2020
Merged

List Engine jobs #3322

merged 7 commits into from
Sep 16, 2020

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Sep 15, 2020

Adds Engine.list_jobs() and EngineProgram.list_jobs().

Adds Engine.list_jobs(), EngineProgram.list_jobs() (which call the newly added EngineClient.list_jobs()) with filtering capabilities:

  • created_after, created_before, has_labels
  • execution states to filter for a set of states

Related #3302. Next PR will be to update the docs and that will close it.

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Sep 15, 2020
cirq/google/engine/engine_client.py Show resolved Hide resolved
cirq/google/engine/engine_client.py Outdated Show resolved Hide resolved
cirq/google/engine/engine_client.py Outdated Show resolved Hide resolved
cirq/google/engine/engine_client.py Outdated Show resolved Hide resolved
cirq/google/engine/engine_program.py Show resolved Hide resolved
Copy link
Collaborator

@dstrain115 dstrain115 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up so quickly. LGTM with some doc comments.

cirq/google/engine/engine.py Outdated Show resolved Hide resolved
cirq/google/engine/engine.py Show resolved Hide resolved
cirq/google/engine/engine_client.py Outdated Show resolved Hide resolved
cirq/google/engine/engine_program.py Outdated Show resolved Hide resolved
@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Sep 16, 2020
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Sep 16, 2020
@CirqBot CirqBot merged commit b0f42a1 into quantumlib:master Sep 16, 2020
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants