Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14087741
D10803.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10803.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10803: Make `./bin/diviner generate` more fault tolerant
Attached
Detach File
Event Timeline
Log In to Comment