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

send OK event when a chronos job has been disabled #292

Merged
merged 1 commit into from
Mar 7, 2016

Conversation

Rob-Johnson
Copy link
Contributor

closes #284

state = job_state_pairs[0][1]
sensu_status = sensu_event_for_last_run_state(state)
output = message_for_status(sensu_status, service, instance, full_job_id)
if job_state_pairs[0][0].get('disabled') is True:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this inspect the job_state_pairs? Can we ask the actual source of truth instead? (the instance_config.get_status()

That way we don't have to wait for a bounce?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because the job at [0][0] is just a dict pulled from the api, not a ChronosJobConfig

@solarkennedy
Copy link
Contributor

ship

Rob-Johnson added a commit that referenced this pull request Mar 7, 2016
send OK event when a chronos job has been disabled
@Rob-Johnson Rob-Johnson merged commit 3b80fba into master Mar 7, 2016
@Rob-Johnson Rob-Johnson deleted the remove-alerting-when-disabled branch April 4, 2016 14:27
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.

check_chronos_job alerts when a job is disabled
2 participants