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

Handle scheduler job state #11141

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

lmartelli
Copy link

@lmartelli lmartelli commented Feb 22, 2022

Adds new attribute state that can be PAUSED or ENABLED
Also enables scheduler prior to any update, because a paused job cannot be updated
We should probably validate the state value, but I'm not sure what the standard approach for this.

removed duplicated code related to sendRequestWithTimeout()
@lmartelli lmartelli changed the title Handle state Handle scheduler state Feb 22, 2022
@lmartelli lmartelli changed the title Handle scheduler state Handle scheduler job state Feb 22, 2022
Copy link
Collaborator

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

Unfortunately this resource is auto generated, so we won't be able to accept this patch.

Contributions for this resource can be added at https://github.com/GoogleCloudPlatform/magic-modules/blob/master/mmv1/products/cloudscheduler/api.yaml but this is an unusual use case where custom code will be needed via a custom update or similar.

I'm a little worried about the implementation enabling jobs that users haven't specified that they want to enable. If a job was created via TF and paused manually we would enable via TF without telling the user what was going to happen

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.

None yet

2 participants