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

Fixes #4840: Job Scheduler Technique will miss some jobs when using a non-default agent execution frequency #1370

Conversation

ncharles
Copy link
Member

@@ -56,6 +56,29 @@ body classes rudder_common_classes_persist(prefix, persist)
persist_time => ${persist};
}


body classes rudder_common_classes_exclusive_persist_codes(prefix, persist, keptcodes, repairedcodes, errorcodes)
Copy link
Member

@amousset amousset Nov 16, 2018

Choose a reason for hiding this comment

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

Ideally, this should go into ncf lib.

Copy link
Member Author

Choose a reason for hiding this comment

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

well, rudder-stdlib is full of deprectated stuff

Copy link
Member Author

Choose a reason for hiding this comment

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

i wasn't sure about the ncf part - it's a rudder_ something, and that's not commont to have rudder_ stuff there

Copy link
Member

Choose a reason for hiding this comment

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

You can rename it to remove rudder in the name, it is a generic body.

@ncharles
Copy link
Member Author

Commit modified

@ncharles ncharles force-pushed the bug_4840/job_scheduler_technique_will_miss_some_jobs_when_using_a_non_default_agent_execution_frequency branch 2 times, most recently from c81baf7 to 4407315 Compare November 19, 2018 10:03
@ncharles
Copy link
Member Author

Commit modified

pass2::
# check if the job should run
"schedule_${iterator}" usebundle =>
schedule_simple("${job_scheduler_canon_name[${iterator}]}_RudderUniqueID", "${g.agent_run_interval}", 0, "${max_execution_delay_hours_${iterator}}", "0", "${job_scheduler_time_min[${iterator}]}", "0", "0", "24", "0", "nodups");
Copy link
Member

Choose a reason for hiding this comment

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

We should have a fallback on 5 mintues in case system techniques are not up to date.

@ncharles ncharles force-pushed the bug_4840/job_scheduler_technique_will_miss_some_jobs_when_using_a_non_default_agent_execution_frequency branch from 4407315 to a9130b8 Compare December 17, 2018 10:13
@ncharles
Copy link
Member Author

Commit modified

@ncharles ncharles force-pushed the bug_4840/job_scheduler_technique_will_miss_some_jobs_when_using_a_non_default_agent_execution_frequency branch from a9130b8 to aa1ce5b Compare December 17, 2018 10:14
@ncharles
Copy link
Member Author

Commit modified

@ncharles
Copy link
Member Author

to be merged with Normation/ncf#884

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit aa1ce5b into Normation:branches/rudder/4.3 Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants