File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,17 @@ public function execute(AMQPMessage $message)
41
41
$ output = $ job ->run ($ this ->container );
42
42
43
43
if (isset ($ data ['uuid ' ])) {
44
- $ this ->getJobLogRepository ()->saveOutput (
45
- $ data ['uuid ' ],
46
- strval ($ output )
47
- );
44
+ try {
45
+ $ this ->getJobLogRepository ()->saveOutput (
46
+ $ data ['uuid ' ],
47
+ strval ($ output )
48
+ );
49
+ } catch (\Throwable $ t ) {
50
+ // do nothing
51
+ }
48
52
}
49
53
50
- } catch (\Exception $ e ) {
54
+ } catch (\Throwable $ e ) {
51
55
$ command = '' ;
52
56
53
57
if ((isset ($ job ))) {
@@ -64,11 +68,15 @@ public function execute(AMQPMessage $message)
64
68
}
65
69
// save failure if job had uuid
66
70
if (isset ($ data ['uuid ' ])) {
67
- $ this ->getJobLogRepository ()->saveFailure (
68
- $ data ['uuid ' ],
69
- strval ($ output ),
70
- $ exitCode ?? 1
71
- );
71
+ try {
72
+ $ this ->getJobLogRepository ()->saveFailure (
73
+ $ data ['uuid ' ],
74
+ strval ($ output ),
75
+ $ exitCode ?? 1
76
+ );
77
+ } catch (\Throwable $ t ) {
78
+ // do nothing
79
+ }
72
80
}
73
81
74
82
$ this ->container ->get ('logger ' )->error (sprintf ('Job Failed: %s ' , $ command ), [
You can’t perform that action at this time.
0 commit comments