Page MenuHomePhabricator

D10803.diff
No OneTemporary

D10803.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
Sun, Nov 24, 11:35 PM (21 h, 47 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6784265
Default Alt Text
D10803.diff (1 KB)

Event Timeline