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

Allow MiqSchedule to accept nil and skip scheduling #19105

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Aug 6, 2019

ISSUE: there is no good way to disable not needed schedule.
FIX: accept nil or empty string as first argument to MiqScheduleWorker::Scheduler#schedule_every which will trigger skipping scheduling

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1736749

@miq-bot add-label enhancement, core, changelog/yes, hammer/yes, ivanchuk/yes

\cc @gtanzillo

@yrudman yrudman force-pushed the pass-nil-to-miq_scheduler-to-ignore-schedule branch from 246c6f3 to f02afae Compare August 6, 2019 14:37
@miq-bot
Copy link
Member

miq-bot commented Aug 6, 2019

Checked commit yrudman@f02afae with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍪

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@gtanzillo gtanzillo added this to the Sprint 118 Ending Aug 19, 2019 milestone Aug 6, 2019
@gtanzillo gtanzillo merged commit 52f7821 into ManageIQ:master Aug 6, 2019
@yrudman yrudman deleted the pass-nil-to-miq_scheduler-to-ignore-schedule branch August 6, 2019 19:29
simaishi pushed a commit that referenced this pull request Aug 7, 2019
…gnore-schedule

Allow MiqSchedule to accept nil and skip scheduling

(cherry picked from commit 52f7821)

https://bugzilla.redhat.com/show_bug.cgi?id=1736749
@simaishi
Copy link
Contributor

simaishi commented Aug 7, 2019

Ivanchuk backport details:

$ git log -1
commit f33669afc6af838427272bed1bdf94fd889ce33e
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Tue Aug 6 15:13:55 2019 -0400

    Merge pull request #19105 from yrudman/pass-nil-to-miq_scheduler-to-ignore-schedule
    
    Allow MiqSchedule to accept nil and skip scheduling
    
    (cherry picked from commit 52f78217f0993eca88301e7a55475cb16b99c156)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1736749

simaishi pushed a commit that referenced this pull request Oct 21, 2019
…gnore-schedule

Allow MiqSchedule to accept nil and skip scheduling

(cherry picked from commit 52f7821)

https://bugzilla.redhat.com/show_bug.cgi?id=1763862
@simaishi
Copy link
Contributor

Hammer backport details:

$ git log -1
commit 0224c074171e566fd705db39808aace390ca1e94
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Tue Aug 6 15:13:55 2019 -0400

    Merge pull request #19105 from yrudman/pass-nil-to-miq_scheduler-to-ignore-schedule
    
    Allow MiqSchedule to accept nil and skip scheduling
    
    (cherry picked from commit 52f78217f0993eca88301e7a55475cb16b99c156)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1763862

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants