Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/scheduler/scheduler.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1941 Lines • ▼ Show 20 Line(s) | 1938 | #endif | |||
---|---|---|---|---|---|
1942 | /* Remove unscheduled jobs that may have appeared during the last step - safeguard */ | 1942 | /* Remove unscheduled jobs that may have appeared during the last step - safeguard */ | ||
1943 | sortedJobs.erase(std::remove_if(sortedJobs.begin(), sortedJobs.end(), [](SchedulerJob * job) | 1943 | sortedJobs.erase(std::remove_if(sortedJobs.begin(), sortedJobs.end(), [](SchedulerJob * job) | ||
1944 | { | 1944 | { | ||
1945 | SchedulerJob::JOBStatus const s = job->getState(); | 1945 | SchedulerJob::JOBStatus const s = job->getState(); | ||
1946 | return SchedulerJob::JOB_SCHEDULED != s && SchedulerJob::JOB_ABORTED != s; | 1946 | return SchedulerJob::JOB_SCHEDULED != s && SchedulerJob::JOB_ABORTED != s; | ||
1947 | }), sortedJobs.end()); | 1947 | }), sortedJobs.end()); | ||
1948 | 1948 | | |||
1949 | /* Apply sorting to queue table, and mark it for saving if it changes */ | 1949 | /* Apply sorting to queue table, and mark it for saving if it changes */ | ||
1950 | mDirty = reorderJobs(sortedJobs); | 1950 | mDirty = reorderJobs(sortedJobs) | mDirty; | ||
1951 | 1951 | | |||
1952 | if (jobEvaluationOnly || state != SCHEDULER_RUNNIG) | 1952 | if (jobEvaluationOnly || state != SCHEDULER_RUNNIG) | ||
1953 | { | 1953 | { | ||
1954 | qCInfo(KSTARS_EKOS_SCHEDULER) << "Ekos finished evaluating jobs, no job selection required."; | 1954 | qCInfo(KSTARS_EKOS_SCHEDULER) << "Ekos finished evaluating jobs, no job selection required."; | ||
1955 | jobEvaluationOnly = false; | 1955 | jobEvaluationOnly = false; | ||
1956 | return; | 1956 | return; | ||
1957 | } | 1957 | } | ||
1958 | 1958 | | |||
▲ Show 20 Lines • Show All 5334 Lines • Show Last 20 Lines |