Skip to content

Commit 17ed9bb

Browse files
committed
fix (cloud) flush client's log messages before exit in cloud mode
1 parent 8015d80 commit 17ed9bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/server-code/runners/cloud.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function flushPendingLogs() {
1111
}
1212

1313
function finalize() {
14-
flushPendingLogs();
14+
return flushPendingLogs();
1515
}
1616

1717
exports.start = function(opts) {
@@ -34,5 +34,7 @@ exports.start = function(opts) {
3434
});
3535
}
3636

37-
return getTask().then(processTask).then(finalize);
37+
return getTask()
38+
.then(processTask)
39+
.then(finalize);
3840
};

0 commit comments

Comments
 (0)