Executions list: show what a command ran and on which worker #76
No files matched your search
@@ -254,7 +254,7 @@ html[data-theme="light"] .ex-row.is-selected td { background: rgba(255, 179, 0,
|
||||
/* Command executions in the list: `command @ worker` (#15). */
|
||||
.ex-row-cmd {
|
||||
display: inline-block;
|
||||
max-width: 32rem;
|
||||
max-width: min(24rem, 100%);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
@@ -1697,7 +1697,7 @@ app.get('/api/executions', authenticateSSO, async (req, res) => {
|
||||
`SELECT e.id, e.workflow_id, e.status, e.started_by, e.started_at, e.completed_at,
|
||||
w.name as workflow_name,
|
||||
-- What a command execution ran, and where (#15): its first log entry.
|
||||
IF(e.workflow_id IS NULL, LEFT(JSON_UNQUOTE(JSON_EXTRACT(e.logs, '$[0].command')), 120), NULL) AS command,
|
||||
IF(e.workflow_id IS NULL, LEFT(JSON_UNQUOTE(JSON_EXTRACT(e.logs, '$[0].command')), 500), NULL) AS command,
|
||||
IF(e.workflow_id IS NULL, wk.name, NULL) AS worker_name
|
||||
FROM executions e
|
||||
LEFT JOIN workflows w ON e.workflow_id = w.id
|
||||
|
||||
Reference in new issue
Block a user