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

RESOURCE-599 State added in Cloud Scheduler files generated from MM #439

Merged
merged 6 commits into from
May 3, 2023

Conversation

sa-progress
Copy link
Contributor

@sa-progress sa-progress commented May 2, 2023

Description

This pull request (#439) adds a state attribute to the google_cloud_scheduler resource.
This attribute indicates the current state of a job in Google Cloud Scheduler, and can have two possible values: ENABLED and PAUSED.

ENABLED The job is executing normally.
PAUSED The job is paused by the user. It will not execute. A user can intentionally pause the job using PauseJobRequest.

(https://cloud.google.com/scheduler/docs/reference/rpc/google.cloud.scheduler.v1#google.cloud.scheduler.v1.PauseJobRequest).

The state attribute is a valuable addition to the google_cloud_scheduler resource, as it provides a simple way to determine the current status of a job. This information can be used to monitor the job and take appropriate actions based on its state.

Issues Resolved

List any existing issues this PR resolves, or any Discourse or StackOverflow discussion that's relevant.

Please ensure commits have been signed-off for the Developer Certificate of Origin. See https://github.com/chef/chef/blob/master/CONTRIBUTING.md#developer-certification-of-origin-dco

@sa-progress sa-progress requested a review from a team as a code owner May 2, 2023 13:20
@sa-progress sa-progress self-assigned this May 2, 2023
@sa-progress sa-progress added DO_NOT_MERGE Version: Bump Minor Used by github.minor_bump_labels to bump the Minor version number. and removed DO_NOT_MERGE labels May 2, 2023
@sa-progress sa-progress merged commit df4d288 into main May 3, 2023
@wyardley
Copy link

wyardley commented May 3, 2023

Thanks @sa-progress @clintoncwolfe
Confirming that this now works

     ✔  Job testjob-paused state is expected to eq "PAUSED"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Version: Bump Minor Used by github.minor_bump_labels to bump the Minor version number.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants