Skip to content

Commit

Permalink
Add Args and stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
luishdez committed Apr 19, 2016
1 parent 237b97e commit 487e2f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions FailedJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ public function getWorkerName()
return $this->data['worker'];
}

public function getArgs()
{
return $this->data['payload']['args'];
}

public function getExceptionClass()
{
return $this->data['exception'];
Expand Down
11 changes: 9 additions & 2 deletions Resources/views/Default/failed_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<th>Queue</th>
<th>Failed at</th>
<th>Job</th>
<th>Args</th>
<th>Error</th>
</tr>
</thead>
Expand All @@ -19,10 +20,16 @@
<tr>
<td class="span1">{{ job.queueName }}</td>
<td class="span2">{{ job.failedAt }}</td>
<td class="span4">{{ job.name }}</td>
<td class="span3">
{{ job.name }}<br/>
</td>
<td class="span4">
{{ job.args|json_encode|raw }}
</td>
<td class="span5">
{{ job.exceptionClass }}<br>
{{ job.error }}
{{ job.error }}<br/><br/>
{{ job.backtrace|json_encode }}
</td>
</tr>
{% else %}
Expand Down

0 comments on commit 487e2f1

Please sign in to comment.