Page MenuHomePhabricator

D10803.id25968.diff
No OneTemporary

D10803.id25968.diff

diff --git a/src/applications/diviner/workflow/DivinerGenerateWorkflow.php b/src/applications/diviner/workflow/DivinerGenerateWorkflow.php
--- a/src/applications/diviner/workflow/DivinerGenerateWorkflow.php
+++ b/src/applications/diviner/workflow/DivinerGenerateWorkflow.php
@@ -334,14 +334,18 @@
$bar = id(new PhutilConsoleProgressBar())
->setTotal(count($futures));
foreach (Futures($futures)->limit(4) as $key => $future) {
- $atoms = $future->resolveJSON();
-
- foreach ($atoms as $atom) {
- if ($atom['type'] == DivinerAtom::TYPE_FILE) {
- $file_hash = $file_hashes[$atom['file']];
- $atom_cache->addFileHash($file_hash, $atom['hash']);
+ try {
+ $atoms = $future->resolveJSON();
+
+ foreach ($atoms as $atom) {
+ if ($atom['type'] == DivinerAtom::TYPE_FILE) {
+ $file_hash = $file_hashes[$atom['file']];
+ $atom_cache->addFileHash($file_hash, $atom['hash']);
+ }
+ $atom_cache->addAtom($atom);
}
- $atom_cache->addAtom($atom);
+ } catch (Exception $e) {
+ phlog($e);
}
$bar->update(1);

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 7:30 PM (21 h, 46 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6801939
Default Alt Text
D10803.id25968.diff (1 KB)

Event Timeline