Skip to content

Conversation

@richscott
Copy link
Member

@richscott richscott commented Jan 15, 2026

Add new jobWatcher(queue, jobset, lastMessage) method to ArmadaClient class, based on original logic in armada-spark repository.

Fill in implementation of watch() method in ArmadaClientSuite (test) EventMockServer. Clear out job, queue, and status maps (the backing store for the ArmadaMockServer) before running each test, to avoid test pollution.

Change from using .onComplete{..} idiom to Await.result(response, timeout) for more robust async testing behavior. Add watch support to testing mock server, add unit test for jobWatcher().

Fixes G-Research/spark#160

Add new jobWatcher(queue, jobset, lastMessage) method to ArmadaClient class,
based on original logic in armada-spark repository.

Fill in implementation of watch() method in ArmadaClientSuite (test)
EventMockServer. Clear out job, queue, and status maps (the backing store for
the ArmadaMockServer) before running each test, to avoid test pollution.

Change from using .onComplete{..} idiom to Await.result(response, timeout) for
more robust async testing behavior. Add test for jobWatcher(), verify that
expected events do arrive and in expected order.

Fixes G-Research/spark#160

Signed-off-by: Rich Scott <[email protected]>
@richscott richscott self-assigned this Jan 15, 2026
@richscott richscott marked this pull request as draft January 15, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Armada client doesn't support the watcher api.

1 participant