Skip to content

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

@doks5 doks5 force-pushed the person/andonova/heartbeat-fix branch from a81bf19 to 850dfb9 Compare October 23, 2023 14:03
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
@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.

5 participants