Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vdk-heartbeat: Introduce additional sleep when checking deployments #2824

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented Oct 23, 2023

With the introduction of the deployment synchronizer, the behaviour of the Control Service, when a data job is deployed, has changed slightly. Now, there is a slight delay between a job status changing from Enabled to Disabled, and the status being reflected in the output of the vdk deploy --show command. This causes the vdk heartbeat to fail, as it expects the changes to be applied immediately.

This change adds a new check when the check_deployments() method is called, whose purpose is to verify that the job status has changed from enabled to disabled, and sleep for a bit if this is not the case.

Testing Done: Executed the heartbeat locally with the command

vdk-heartbeat -f test_basic_config.ini

With the introduction of the deployment synchronizer, the behaviour of the Control Service,
when a data job is deployed, has changed slightly. Now, there is a slight delay between a job
status changing from Enabled to Disabled, and the status being reflected in the output of the
`vdk deploy --show` command. This causes the vdk heartbeat to fail, as it expects the changes
to be applied immediately.

This change adds a new check when the `check_deployments()` method is called, whose purpose is
to verify that the job status has changed from enabled to disabled, and sleep for a bit if this
is not the case.

Testing Done: Executed the heartbeat locally with the command
```bash
vdk-heartbeat -f test_basic_config.ini
```

Signed-off-by: Andon Andonov <andonova@vmware.com>
@doks5 doks5 force-pushed the person/andonova/heartbeat-fix branch from a94e186 to 50fd3b1 Compare October 24, 2023 09:39
@doks5 doks5 merged commit 24f1336 into main Oct 24, 2023
8 checks passed
@doks5 doks5 deleted the person/andonova/heartbeat-fix branch October 24, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants