SocalNick / orchestrate-php-client

A PHP client for Orchestrate.io
BSD 3-Clause "New" or "Revised" License
32 stars 5 forks source link

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

Open ghost opened 8 years ago

ghost commented 8 years ago

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?