Skip to content

Commit

Permalink
Resume hindcast results downloading re: v202111
Browse files Browse the repository at this point in the history
  • Loading branch information
douglatornell committed Oct 5, 2022
1 parent 6d9c4a9 commit 7066ba8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions nowcast/next_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,15 @@ def after_watch_NEMO_hindcast(msg, config, checklist):
if msg.type == "success":
next_workers[msg.type].extend(
[
NextWorker(
"nowcast.workers.download_results",
args=[
msg.payload["hindcast"]["host"],
"hindcast",
"--run-date",
msg.payload["hindcast"]["run date"],
],
),
NextWorker(
"nowcast.workers.watch_NEMO_hindcast",
args=[msg.payload["hindcast"]["host"]],
Expand Down
4 changes: 2 additions & 2 deletions tests/test_next_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ def test_no_next_worker_msg_types(self, msg_type, config, checklist):
)
],
)
def test_success_not_launch_download_results(self, msg, config, checklist):
def test_success_launch_download_results(self, msg, config, checklist):
workers = next_workers.after_watch_NEMO_hindcast(msg, config, checklist)
expected = NextWorker(
"nowcast.workers.download_results",
Expand All @@ -1955,7 +1955,7 @@ def test_success_not_launch_download_results(self, msg, config, checklist):
],
host="localhost",
)
assert expected not in workers
assert expected in workers

@pytest.mark.parametrize(
"msg",
Expand Down

0 comments on commit 7066ba8

Please sign in to comment.