orchestrate-php-client
orchestrate-php-client copied to clipboard
Possible that execute is still running while a search is happening?
If I have something like:
$kvPatchOperationsOp = new KvPatchOperationsOperation('something', 12345);
$kvPatchOperationsOp->add('completed', true);
$result = $client->execute($kvPatchOperationsOp);
$searchOp = new SearchOperation("something", 'completed: true, 100, 0, '');
$searchResult = $client->execute($searchOp);
$count = $searchResult->count();
Is there a chance that the execute hasn't been completed yet and $count will still be grabbing "12345" as true? If so, do you have any suggestions on how to counter-act that?