Skip to content

Pause sample env topic between runs#336

Merged
DanNixon merged 10 commits intoISISNeutronMuon:mainfrom
Modularius:Pause-sample-env-topic-between-runs
May 3, 2025
Merged

Pause sample env topic between runs#336
DanNixon merged 10 commits intoISISNeutronMuon:mainfrom
Modularius:Pause-sample-env-topic-between-runs

Conversation

@Modularius
Copy link
Contributor

Summary of changes

  • Modifies create_default_consumer in common crate to make topics_to_subscribe parameter optional. Also pushes error handling responsability to the caller.
  • Updates all non nexus-writer components appropriately.
  • Encapsulates all NexusEngine dependencies into a trait to aid future extension.
  • Injects new dependency KafkaTopicSubscriber to NexusEngine which allows NexusEngine to switch between two topic subscriber modes: "Full" (which subscribes to all topics) and "Continuous" (which subscribes to all but SampleEnvironmentLogs and Alarms).

Pending further info from Peter, the RunLog topic could also be removed from the "Continuous" mode if required, at the moment it is not removed.

Closes Record sample env logs since end of last run in current run.

Instruction for review/testing

General Code Review.
Tested on Simulated Data.

@Modularius Modularius requested a review from DanNixon April 23, 2025 12:03
@Modularius Modularius marked this pull request as ready for review April 25, 2025 08:49
@Modularius Modularius requested a review from DanNixon May 2, 2025 12:36
@Modularius Modularius requested a review from DanNixon May 2, 2025 13:21
@DanNixon DanNixon merged commit 61b4960 into ISISNeutronMuon:main May 3, 2025
9 checks passed
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.

Record sample env logs since end of last run in current run

2 participants