Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FINAM
finam
Commits
73f0f2fa
Commit
73f0f2fa
authored
2 years ago
by
Martin Lange
Browse files
Options
Downloads
Patches
Plain Diff
don't update finished components
parent
5ec4e13c
No related branches found
No related tags found
1 merge request
!159
New scheduling algorithm
Pipeline
#126731
passed with stages
in 2 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finam/schedule.py
+3
-2
3 additions, 2 deletions
src/finam/schedule.py
with
3 additions
and
2 deletions
src/finam/schedule.py
+
3
−
2
View file @
73f0f2fa
...
...
@@ -189,7 +189,7 @@ class Composition(Loggable):
any_running
=
False
for
mod
in
time_modules
:
if
mod
.
time
<
t_max
:
if
mod
.
status
!=
ComponentStatus
.
FINISHED
and
mod
.
time
<
t_max
:
any_running
=
True
break
...
...
@@ -224,7 +224,8 @@ class Composition(Loggable):
return
updated
if
isinstance
(
module
,
ITimeComponent
):
module
.
update
()
if
module
.
status
!=
ComponentStatus
.
FINISHED
:
module
.
update
()
return
module
return
None
...
...
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