Skip to content

Commit

Permalink
Remove 'make_runoff_file' from automation workflow
Browse files Browse the repository at this point in the history
The 'make_runoff_file' worker has been removed from the 'next_workers' module
because it is replaced by 'make_20211_runoff_file' for v202111. The associated
tests have been updated or removed.
  • Loading branch information
douglatornell committed Dec 31, 2023
1 parent 783599e commit 610f682
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions nowcast/next_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def after_download_weather(msg, config, checklist):
)
race_condition_workers = {
"grib_to_netcdf",
"make_runoff_file",
"make_v202111_runoff_file",
}
return next_workers[msg.type], race_condition_workers
Expand All @@ -106,7 +105,6 @@ def after_download_weather(msg, config, checklist):
race_condition_workers = {
"grib_to_netcdf",
"make_live_ocean_files",
"make_runoff_file",
"make_v202111_runoff_file",
}
return next_workers[msg.type], race_condition_workers
Expand Down Expand Up @@ -391,7 +389,6 @@ def after_make_ssh_files(msg, config, checklist):
next_workers[msg.type].append(
NextWorker("nowcast.workers.make_v202111_runoff_file")
)
next_workers[msg.type].append(NextWorker("nowcast.workers.make_runoff_file"))
return next_workers[msg.type]


Expand Down
11 changes: 0 additions & 11 deletions tests/test_next_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ def mock_now():
assert workers == expected
assert race_condition_workers == {
"grib_to_netcdf",
"make_runoff_file",
"make_v202111_runoff_file",
}

Expand All @@ -240,7 +239,6 @@ def mock_now():
assert race_condition_workers == {
"grib_to_netcdf",
"make_live_ocean_files",
"make_runoff_file",
"make_v202111_runoff_file",
}

Expand Down Expand Up @@ -336,7 +334,6 @@ def mock_now():
assert workers == expected
assert race_condition_workers == {
"grib_to_netcdf",
"make_runoff_file",
"make_v202111_runoff_file",
}

Expand Down Expand Up @@ -367,7 +364,6 @@ def mock_now():
assert race_condition_workers == {
"grib_to_netcdf",
"make_live_ocean_files",
"make_runoff_file",
"make_v202111_runoff_file",
}

Expand Down Expand Up @@ -557,13 +553,6 @@ def test_success_launch_make_v202111_runoff_file(self, msg_type, config, checkli
)
assert workers[0] == NextWorker("nowcast.workers.make_v202111_runoff_file")

@pytest.mark.parametrize("msg_type", ["success nowcast", "success forecast2"])
def test_success_launch_make_runoff_file(self, msg_type, config, checklist):
workers = next_workers.after_make_ssh_files(
Message("make_ssh_files", msg_type), config, checklist
)
assert workers[1] == NextWorker("nowcast.workers.make_runoff_file")


class TestAfterGribToNetcdf:
"""Unit tests for the after_grib_to_netcdf function."""
Expand Down

0 comments on commit 610f682

Please sign in to comment.