Skip to content

[releases/1.1] ni_measurementlink_service: Launch discovery service just-in-time before registering a measurement service#317

Merged
bkeryan merged 1 commit intoreleases/1.1from
users/bkeryan/launch-discovery-service-jit-1.1
Jun 30, 2023
Merged

[releases/1.1] ni_measurementlink_service: Launch discovery service just-in-time before registering a measurement service#317
bkeryan merged 1 commit intoreleases/1.1from
users/bkeryan/launch-discovery-service-jit-1.1

Conversation

@bkeryan
Copy link
Copy Markdown
Collaborator

@bkeryan bkeryan commented Jun 29, 2023

What does this Pull Request accomplish?

  • Update discovery_client to ensure discovery service is started before measurement service is trying to register to it.
  • If discovery service key file doesn't exist, get the discovery service exe file path and execute the process.

Cherry picked from 5af9b2f

Why should this Pull Request be merged?

What testing has been done?

  • Manually tested sample_measurement with and without discovery service running.

…ore registering a measurement service. (#290)

* discovery_client: Launch discovery service just-in-time

* discovery_client: add comments to functions

* discovery_client: Fix lint errors.

* discovery_client: Fix function docstring and type hint

* discovery_client: Wait for key file existence and time out when 30 seconds elapse

* discovery_client: Replace polling2 module with time module

* discovery_client: Added service already running functionality

* discovery_client: Refactor open method with write permission.

Co-authored-by: Brad Keryan <brad.keryan@ni.com>

---------

Co-authored-by: Brad Keryan <brad.keryan@ni.com>
(cherry picked from commit 5af9b2f)
@bkeryan bkeryan force-pushed the users/bkeryan/launch-discovery-service-jit-1.1 branch from 07549f0 to 593ca34 Compare June 30, 2023 12:55
@bkeryan bkeryan merged commit 1d99a70 into releases/1.1 Jun 30, 2023
@bkeryan bkeryan deleted the users/bkeryan/launch-discovery-service-jit-1.1 branch June 30, 2023 19: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.

2 participants