-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2584 from TomekTrzeciak/ordered_queue
Use OrderedDict for queues to make them FIFO
- Loading branch information
Showing
5 changed files
with
94 additions
and
16 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,32 @@ | ||
#!/bin/bash | ||
# THIS FILE IS PART OF THE CYLC SUITE ENGINE. | ||
# Copyright (C) 2008-2018 NIWA | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
#------------------------------------------------------------------------------- | ||
# Test job script sets dependencies in evironment. | ||
. "$(dirname "${0}")/test_header" | ||
set_test_number 3 | ||
|
||
install_suite "${TEST_NAME_BASE}" "${TEST_NAME_BASE}" | ||
run_ok "${TEST_NAME_BASE}-validate" cylc validate "${SUITE_NAME}" | ||
run_ok "${TEST_NAME_BASE}-run" \ | ||
cylc run "${SUITE_NAME}" --reference-test --debug --no-detach | ||
run_ok "${TEST_NAME_BASE}-test" bash -o pipefail -c " | ||
cylc cat-log '${SUITE_NAME}' | | ||
grep 'proc_n.*submitted at' | | ||
sort --key=4,4 --check" | ||
|
||
purge_suite "${SUITE_NAME}" | ||
exit |
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,17 @@ | ||
2018-03-13T14:22:38Z INFO - Initial point: 1 | ||
2018-03-13T14:22:38Z INFO - Final point: 1 | ||
2018-03-13T14:22:38Z INFO - [delay_n1.1] -triggered off [] | ||
2018-03-13T14:22:38Z INFO - [hold.1] -triggered off [] | ||
2018-03-13T14:22:40Z INFO - [delay_n2.1] -triggered off ['delay_n1.1'] | ||
2018-03-13T14:22:42Z INFO - [delay_n3.1] -triggered off ['delay_n2.1'] | ||
2018-03-13T14:22:44Z INFO - [delay_n4.1] -triggered off ['delay_n3.1'] | ||
2018-03-13T14:22:47Z INFO - [delay_n5.1] -triggered off ['delay_n4.1'] | ||
2018-03-13T14:22:48Z INFO - [proc_n1.1] -triggered off ['delay_n1.1'] | ||
2018-03-13T14:22:49Z INFO - [delay_n6.1] -triggered off ['delay_n5.1'] | ||
2018-03-13T14:22:50Z INFO - [proc_n2.1] -triggered off ['delay_n2.1'] | ||
2018-03-13T14:22:52Z INFO - [delay_n7.1] -triggered off ['delay_n6.1'] | ||
2018-03-13T14:22:52Z INFO - [proc_n3.1] -triggered off ['delay_n3.1'] | ||
2018-03-13T14:22:54Z INFO - [proc_n4.1] -triggered off ['delay_n4.1'] | ||
2018-03-13T14:22:56Z INFO - [proc_n5.1] -triggered off ['delay_n5.1'] | ||
2018-03-13T14:22:58Z INFO - [proc_n6.1] -triggered off ['delay_n6.1'] | ||
2018-03-13T14:23:00Z INFO - [proc_n7.1] -triggered off ['delay_n7.1'] |
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,19 @@ | ||
[cylc] | ||
[[parameters]] | ||
n = 1..7 | ||
[scheduling] | ||
[[queues]] | ||
[[[q1]]] | ||
limit = 1 | ||
members = proc<n>, hold | ||
[[dependencies]] | ||
graph = """ | ||
delay<n-1> => delay<n> | ||
delay<n> => proc<n> | ||
hold | ||
""" | ||
[runtime] | ||
[[delay<n>]] | ||
[[proc<n>]] | ||
[[hold]] | ||
script = sleep 7 |