-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#68 Rough support for cyclic execution of BE processes in a window
I don't like that this uses the internal Partition::clear_completed_flag method from Slice. I think that a more architecturally sound solution would be to create BePartition and ScPartition subclasses and move as much of the partition-related logic there, as the special cases for SC and BE are starting to pile up a bit inside Slice.
- Loading branch information
1 parent
f6d6435
commit 8154791
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Test that BE processes are executed in a cycle even in a single long window. | ||
|
||
partitions: | ||
- name: BE1 | ||
processes: | ||
# changing p<n> indent for better output readability | ||
- {budget: 500, cmd: "while true; do echo 'p1'; sleep 0.1; done"} | ||
- {budget: 500, cmd: "while true; do echo 'p 2'; sleep 0.1; done"} | ||
- {budget: 500, cmd: "while true; do echo 'p 3'; sleep 0.1; done"} | ||
|
||
windows: | ||
- length: 5000 | ||
be_partition: BE1 |