Commit 24f1336
authored
vdk-heartbeat: Introduce additional sleep when checking deployments (#2824)
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>1 parent e6cbae4 commit 24f1336
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| |||
0 commit comments