Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
batmen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
mael
batmen
Commits
b2e2d6ec
Commit
b2e2d6ec
authored
2 years ago
by
Maël Madon
Browse files
Options
Downloads
Plain Diff
Merge branch 'issue12' into 'master'
fix: more robust CALL_ME_LATER date checking. Closes issue
#12
Closes
#12
See merge request
!15
parents
5f8ef370
3b1bb63b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!15
fix: more robust CALL_ME_LATER date checking. Closes issue #12
Pipeline
#5696
passed
2 years ago
Stage: build-and-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/users/dynscheduler.cpp
+4
-2
4 additions, 2 deletions
src/users/dynscheduler.cpp
with
4 additions
and
2 deletions
src/users/dynscheduler.cpp
+
4
−
2
View file @
b2e2d6ec
...
...
@@ -4,8 +4,10 @@
#include
"../pempek_assert.hpp"
#include
"json_workload.hpp"
#include
"loguru.hpp"
#include
<cmath>
#include
<limits>
#include
<map>
#include
<math.h>
#include
<string>
DynScheduler
::
DynScheduler
(
Workload
*
workload
,
SchedulingDecision
*
decision
,
...
...
@@ -86,7 +88,7 @@ void DynScheduler::make_decisions(double date,
/* Time of next_submission might have changed in response to feedback */
double
new_date_of_next_submission
=
broker
->
next_submission
(
date
);
if
(
abs
(
date
-
new_date_of_next_submission
)
<
.00001
)
if
(
new_date_of_next_submission
==
lround
(
date
)
)
{
submit_broker_jobs
(
date
);
new_date_of_next_submission
=
broker
->
next_submission
(
date
);
...
...
@@ -115,7 +117,7 @@ void DynScheduler::on_requested_call(double date)
ISchedulingAlgorithm
::
on_requested_call
(
date
);
/* Check if this call concerns the broker */
if
(
broker_enabled
&&
abs
(
date
-
broker
->
next_submission
(
date
)
)
<
.00001
)
if
(
broker_enabled
&&
broker
->
next_submission
(
date
)
==
lround
(
date
)
)
{
/* Handle the jobs to submit */
submit_broker_jobs
(
date
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment