orchestrate-php-client icon indicating copy to clipboard operation
orchestrate-php-client copied to clipboard

Possible that execute is still running while a search is happening?

Open ghost opened this issue 8 years ago • 0 comments

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?

ghost avatar Aug 10 '16 15:08 ghost