emailengine-app 2.83.2 → 2.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/SECURITY.md +126 -47
- package/data/google-crawlers.json +1 -1
- package/lib/api-routes/outbox-routes.js +132 -9
- package/lib/api-routes/permission-map.js +11 -1
- package/lib/consts.js +0 -4
- package/lib/email-client/imap/idle-settings.js +44 -0
- package/lib/email-client/imap/mailbox.js +19 -7
- package/lib/email-client/imap-client.js +3 -21
- package/lib/enum-descriptions.js +7 -0
- package/lib/export.js +2 -6
- package/lib/field-usage.js +4 -0
- package/lib/handlebars-helpers.js +4 -0
- package/lib/outbox.js +338 -10
- package/lib/queue-browser/definitions.js +132 -0
- package/lib/queue-browser/format.js +387 -0
- package/lib/queue-browser/index.js +568 -0
- package/lib/queue-job-actions.js +75 -0
- package/lib/queue-retention.js +53 -1
- package/lib/routes-ui.js +5 -0
- package/lib/schemas.js +42 -2
- package/lib/security-headers.js +2 -24
- package/lib/token-permission-view.js +1 -1
- package/lib/ui-routes/account-routes.js +6 -0
- package/lib/ui-routes/imap-idle-field.js +42 -0
- package/lib/ui-routes/queue-routes.js +371 -0
- package/lib/utils/status-error.js +21 -0
- package/package.json +15 -17
- package/prepare-bundle-deps.sh +1 -1
- package/sbom.json +1 -1
- package/server.js +10 -0
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +2 -0
- package/static/js/queues.js +117 -0
- package/static/licenses.html +122 -246
- package/translations/messages.pot +57 -42
- package/views/accounts/account.hbs +31 -0
- package/views/accounts/edit.hbs +2 -0
- package/views/config/service.hbs +1 -2
- package/views/dashboard.hbs +2 -2
- package/views/partials/queue_cell_account.hbs +20 -0
- package/views/partials/queue_cell_failure.hbs +6 -0
- package/views/partials/queue_clean_items.hbs +9 -0
- package/views/partials/queue_clean_modal.hbs +9 -0
- package/views/partials/queue_entry_actions.hbs +41 -0
- package/views/partials/queue_job_actions.hbs +15 -0
- package/views/partials/queue_pause_controls.hbs +18 -0
- package/views/partials/queue_retention_note.hbs +49 -0
- package/views/partials/queue_rows_export.hbs +58 -0
- package/views/partials/queue_rows_notify.hbs +73 -0
- package/views/partials/queue_rows_submit.hbs +70 -0
- package/views/partials/side_menu.hbs +1 -1
- package/views/partials/ui/tooltip.hbs +5 -3
- package/views/queues/index.hbs +104 -0
- package/views/queues/job.hbs +224 -0
- package/views/queues/queue.hbs +93 -0
- package/views/webhooks/webhook.hbs +3 -0
- package/workers/api.js +0 -4
- package/workers/submit.js +19 -5
- package/workers/webhooks.js +13 -0
- package/lib/api-routes/bull-board-routes.js +0 -56
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{{!-- Listing rows of the outgoing messages queue. Context: the queue page (listing.entries are
|
|
2
|
+
formatted submit entries, see lib/queue-browser/format.js). The "When" column is the one
|
|
3
|
+
timestamp the formatter picked for the state: when a delayed message is due, when a
|
|
4
|
+
failed one failed. --}}
|
|
5
|
+
<table class="table ee-table-stack">
|
|
6
|
+
<thead>
|
|
7
|
+
<tr>
|
|
8
|
+
<th>Message</th>
|
|
9
|
+
<th>Account</th>
|
|
10
|
+
<th>When</th>
|
|
11
|
+
<th>Attempts</th>
|
|
12
|
+
<th>Outcome</th>
|
|
13
|
+
<th class="w-12"><span class="sr-only">Actions</span></th>
|
|
14
|
+
</tr>
|
|
15
|
+
</thead>
|
|
16
|
+
<tbody>
|
|
17
|
+
{{#each listing.entries}}
|
|
18
|
+
<tr class="hover:bg-base-200/60">
|
|
19
|
+
<td class="relative">
|
|
20
|
+
{{> ui/row-link href=url label="Open message"}}
|
|
21
|
+
<div class="font-medium truncate max-w-md">{{title}}</div>
|
|
22
|
+
<div class="text-base-content/60 text-xs truncate max-w-md">{{#if from}}From {{from}}{{/if}}{{#if toFirst}} to {{toFirst}}{{#if toMore}} and {{toMore}} more{{/if}}{{/if}}</div>
|
|
23
|
+
{{> ui/entity-id id=id label="Queue ID"}}
|
|
24
|
+
</td>
|
|
25
|
+
|
|
26
|
+
<td class="relative align-top" data-label="Account">
|
|
27
|
+
{{> ui/row-link href=url}}
|
|
28
|
+
{{> queue_cell_account account=account accountKnown=accountKnown}}
|
|
29
|
+
</td>
|
|
30
|
+
|
|
31
|
+
<td class="relative align-top whitespace-nowrap" data-label="When">
|
|
32
|
+
{{> ui/row-link href=url}}
|
|
33
|
+
<span class="text-base-content/60">{{when.label}}</span> <span class="relative-time" data-time="{{when.time}}"></span>
|
|
34
|
+
</td>
|
|
35
|
+
|
|
36
|
+
<td class="relative align-top whitespace-nowrap" data-label="Attempts">
|
|
37
|
+
{{> ui/row-link href=url}}
|
|
38
|
+
{{attemptsLabel}}
|
|
39
|
+
</td>
|
|
40
|
+
|
|
41
|
+
<td class="relative align-top" data-label="Outcome">
|
|
42
|
+
{{> ui/row-link href=url}}
|
|
43
|
+
{{#if failure}}
|
|
44
|
+
{{> queue_cell_failure}}
|
|
45
|
+
{{#equals state "failed"}}
|
|
46
|
+
{{#unless hasContent}}
|
|
47
|
+
{{> ui/badge label="Content discarded" variant="neutral" soft=true class="mt-1" title=retryBlockedReason}}
|
|
48
|
+
{{/unless}}
|
|
49
|
+
{{/equals}}
|
|
50
|
+
{{else}}
|
|
51
|
+
{{#equals state "completed"}}
|
|
52
|
+
{{> ui/badge label="Delivered" variant="success" soft=true}}
|
|
53
|
+
{{#if outcome.response}}<div class="text-base-content/60 text-xs md:max-w-xs whitespace-normal break-words line-clamp-2" title="{{outcome.response}}">{{outcome.response}}</div>{{/if}}
|
|
54
|
+
{{else}}
|
|
55
|
+
{{#if isScheduledSend}}
|
|
56
|
+
{{> ui/badge label="Scheduled send" variant="neutral" soft=true}}
|
|
57
|
+
{{else}}
|
|
58
|
+
<span class="text-base-content/40">-</span>
|
|
59
|
+
{{/if}}
|
|
60
|
+
{{/equals}}
|
|
61
|
+
{{/if}}
|
|
62
|
+
</td>
|
|
63
|
+
|
|
64
|
+
<td class="ee-stack-actions relative text-end">
|
|
65
|
+
{{> queue_entry_actions}}
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
{{/each}}
|
|
69
|
+
</tbody>
|
|
70
|
+
</table>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
{{> ui/menu-item href="/admin/webhooks" label="Webhook Routes" icon="icon-[tabler--webhook] size-4.5" active=menuWebhooks}}
|
|
19
19
|
|
|
20
20
|
{{> ui/menu-title label="System"}}
|
|
21
|
-
{{> ui/menu-item href="/admin/
|
|
21
|
+
{{> ui/menu-item href="/admin/queues" label="Queues" icon="icon-[tabler--stack-2] size-4.5" active=menuQueues}}
|
|
22
22
|
{{> ui/menu-item href="/admin/internals" label="Workers" icon="icon-[tabler--cpu] size-4.5" active=menuWorkers}}
|
|
23
23
|
|
|
24
24
|
{{#> ui/menu-section id="menu-config" label="Configuration" icon="icon-[tabler--settings] size-4.5" active=menuConfig}}
|
|
@@ -13,15 +13,17 @@
|
|
|
13
13
|
placement - top|bottom|left|right (default top; the [--placement:*]
|
|
14
14
|
classes are safelisted in app.tailwind.css)
|
|
15
15
|
class - extra classes on the wrapper (optional)
|
|
16
|
+
multiline - true to keep the line breaks in text, one fact per line; put
|
|
17
|
+
them in with the newline helper: (concat a (newline) b)
|
|
16
18
|
--}}
|
|
17
19
|
{{#if text}}
|
|
18
20
|
<span class="tooltip [--placement:{{#if placement}}{{placement}}{{else}}top{{/if}}] inline-flex{{#if class}} {{class}}{{/if}}">
|
|
19
21
|
{{!-- own hash params neutralized against fallthrough into the block --}}
|
|
20
|
-
<span class="tooltip-toggle cursor-default">{{> @partial-block text="" placement="" class=""}}</span>
|
|
22
|
+
<span class="tooltip-toggle cursor-default">{{> @partial-block text="" placement="" class="" multiline=""}}</span>
|
|
21
23
|
<span class="tooltip-content tooltip-shown:opacity-100 tooltip-shown:visible" role="tooltip">
|
|
22
|
-
<span class="tooltip-body">{{text}}</span>
|
|
24
|
+
<span class="tooltip-body{{#if multiline}} whitespace-pre-line text-start{{/if}}">{{text}}</span>
|
|
23
25
|
</span>
|
|
24
26
|
</span>
|
|
25
27
|
{{else}}
|
|
26
|
-
{{> @partial-block text="" placement="" class=""}}
|
|
28
|
+
{{> @partial-block text="" placement="" class="" multiline=""}}
|
|
27
29
|
{{/if}}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{{!-- Queue overview: one card per BullMQ queue. Counts are links into the queue's own page, so
|
|
2
|
+
a number that looks wrong is one click from the entries behind it. static/js/queues.js
|
|
3
|
+
repaints the counts and the paused state every few seconds from /admin/queues/counts. --}}
|
|
4
|
+
{{> ui/page-header title="Queues" icon="icon-[tabler--stack-2]" subtitle="What is waiting for a worker, what is running, and what failed: webhook deliveries, outgoing messages and exports." class="mb-6"}}
|
|
5
|
+
|
|
6
|
+
{{#each queues}}
|
|
7
|
+
<div class="card bg-base-100 shadow-md mb-6" data-queue-card="{{name}}">
|
|
8
|
+
<div class="card-header flex flex-wrap items-start justify-between gap-3">
|
|
9
|
+
<div class="flex items-start gap-3 min-w-0">
|
|
10
|
+
<div class="bg-primary/10 text-primary rounded-field flex size-9 shrink-0 items-center justify-center max-sm:hidden">
|
|
11
|
+
<span class="{{icon}} size-5"></span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="min-w-0">
|
|
14
|
+
<h6 class="card-title text-primary mb-0 flex flex-wrap items-center gap-2">
|
|
15
|
+
<a href="/admin/queues/{{name}}" class="link link-animated">{{label}}</a>
|
|
16
|
+
{{!-- The badge is rendered either way and toggled by the page script, so a
|
|
17
|
+
pause made elsewhere shows up without a reload --}}
|
|
18
|
+
<span data-queue-paused="{{name}}" class="{{#unless isPaused}}hidden{{/unless}}">
|
|
19
|
+
{{> ui/badge label="Paused" variant="warning" title="Workers take nothing new from this queue until it is resumed"}}
|
|
20
|
+
</span>
|
|
21
|
+
</h6>
|
|
22
|
+
<p class="text-base-content/60 text-sm mt-1 mb-0 max-w-2xl">{{description}}</p>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="flex items-center gap-2">
|
|
27
|
+
{{> queue_pause_controls name=name isPaused=isPaused next="/admin/queues"}}
|
|
28
|
+
{{#> ui/overflow-menu label=(concat "More " label " queue actions")}}
|
|
29
|
+
<li><a class="dropdown-item" href="/admin/queues/{{name}}">Open queue</a></li>
|
|
30
|
+
{{> queue_clean_items name=name title=title nounPlural=nounPlural}}
|
|
31
|
+
{{/ui/overflow-menu}}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div class="card-body">
|
|
36
|
+
{{!-- One tile per state, in the order the queue page tabs use. The zero tiles are muted
|
|
37
|
+
so the eye lands on the states that hold something. --}}
|
|
38
|
+
<div class="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-5">
|
|
39
|
+
{{#each stateCounts}}
|
|
40
|
+
{{!-- five tiles on a two-column phone grid leave the last one alone on its row; it takes the row --}}
|
|
41
|
+
<a href="{{url}}" class="rounded-box border border-base-content/10 px-4 py-3 hover:bg-base-200/60 transition-colors{{#if @last}} max-sm:col-span-2{{/if}}" title="{{description}}">
|
|
42
|
+
<div class="text-2xl font-semibold {{#if count}}text-{{eeColor variant}}{{else}}text-base-content/40{{/if}}" data-queue-count="{{../name}}:{{name}}" data-count-variant="{{eeColor variant}}">{{formatInteger count @root.userLocale}}</div>
|
|
43
|
+
<div class="text-xs font-medium uppercase tracking-wide text-base-content/60">{{label}}</div>
|
|
44
|
+
</a>
|
|
45
|
+
{{/each}}
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="mt-4 flex flex-wrap items-center gap-x-6 gap-y-1 text-sm text-base-content/60">
|
|
49
|
+
{{#> ui/tooltip multiline=true text=(concat (ngettext "%d worker thread" "%d worker threads" concurrency.workers) " (" concurrency.workersEnv ")" (newline) (ngettext "%d job at a time each" "%d jobs at a time each" concurrency.perWorker) " (" concurrency.concurrencyEnv ")")}}
|
|
50
|
+
<span><span class="icon-[tabler--cpu] size-4 align-text-bottom"></span> Runs up to <strong class="text-base-content">{{concurrency.total}}</strong> at once</span>
|
|
51
|
+
{{/ui/tooltip}}
|
|
52
|
+
|
|
53
|
+
{{#equals name "submit"}}
|
|
54
|
+
{{#> ui/tooltip multiline=true text=(concat "The most recent failed messages keep their content so they can be retried:" (newline) "up to " (formatInteger @root.failedContent.limits.maxCount @root.userLocale) " messages (EENGINE_QUEUE_KEEP_FAILED_CONTENT)" (newline) "up to " @root.failedContent.limits.maxBytesLabel " in total (EENGINE_QUEUE_KEEP_FAILED_CONTENT_SIZE)" (newline) "for " (ngettext "%d day" "%d days" @root.failedContent.limits.maxAgeDays) " (EENGINE_QUEUE_KEEP_FAILED_AGE)")}}
|
|
55
|
+
<span><span class="icon-[tabler--database] size-4 align-text-bottom"></span> Content kept for <strong class="text-base-content">{{@root.failedContent.count}}</strong> failed {{#equals @root.failedContent.count 1}}message{{else}}messages{{/equals}} ({{@root.failedContent.bytesLabel}} of {{@root.failedContent.limits.maxBytesLabel}})</span>
|
|
56
|
+
{{/ui/tooltip}}
|
|
57
|
+
{{/equals}}
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
{{/each}}
|
|
62
|
+
|
|
63
|
+
{{!-- The help panel reads top to bottom the way the page does: the states the tiles count, what
|
|
64
|
+
is kept and for how long (the live bounds, not the defaults), then the actions and the API.
|
|
65
|
+
Paragraphs carry their own bottom margin like every other help panel; ui/details puts no
|
|
66
|
+
spacing between its children. --}}
|
|
67
|
+
{{#> ui/details summary="How the queues work" class="card bg-base-100 shadow-md mb-6"}}
|
|
68
|
+
<div>
|
|
69
|
+
<p class="mb-2">Webhook deliveries, outgoing messages and exports each wait in a queue of their own until a worker
|
|
70
|
+
thread takes them. Every entry passes through the same states, which the tiles above count:</p>
|
|
71
|
+
<ul class="list-disc ps-6 space-y-1 mb-4">
|
|
72
|
+
<li><strong>Waiting</strong>: ready to run as soon as a worker is free. The top of the list is what runs next.</li>
|
|
73
|
+
<li><strong>Active</strong>: being processed by a worker right now.</li>
|
|
74
|
+
<li><strong>Delayed</strong>: waiting for its scheduled time, or for the backoff before the next attempt after a
|
|
75
|
+
failed one.</li>
|
|
76
|
+
<li><strong>Failed</strong>: given up on, after the last attempt or on an error that retrying could not fix. The
|
|
77
|
+
webhook and message queues keep their most recent {{formatInteger retention.failedCount userLocale}} failed
|
|
78
|
+
entries for {{ngettext '%d day' '%d days' retention.failedAgeDays}}.</li>
|
|
79
|
+
<li><strong>Completed</strong>: finished. {{#if retention.completedCount}}The webhook and message queues keep their
|
|
80
|
+
most recent {{formatInteger retention.completedCount userLocale}} for at most a day{{else}}Webhook deliveries
|
|
81
|
+
and messages are removed as soon as they finish{{/if}}, as set by the completed job history limit in
|
|
82
|
+
<a href="/admin/config/service#queue_settings" class="link link-animated">General settings</a>.</li>
|
|
83
|
+
</ul>
|
|
84
|
+
<p class="mb-2">An export leaves its queue the moment it is done, whatever the outcome; its result is on the
|
|
85
|
+
account's page.</p>
|
|
86
|
+
<p class="mb-2"><strong>Pause</strong> stops the workers from taking anything more out of a queue: an attempt that is
|
|
87
|
+
already running finishes, and new entries keep arriving and wait until the queue is resumed. <strong>Clean</strong>
|
|
88
|
+
removes every completed or every failed entry of a queue at once. On a queue's own page a single entry can be
|
|
89
|
+
opened, run now instead of waiting for its time, retried after it failed (a message only while its content is
|
|
90
|
+
still kept) or removed.</p>
|
|
91
|
+
<p class="mb-2">The counts on this page refresh on their own every few seconds.</p>
|
|
92
|
+
<p class="mb-2">The API reports the same counts through
|
|
93
|
+
<a href="/admin/reference/settings#getV1SettingsQueueQueue" class="link link-animated"><code>GET /v1/settings/queue/{queue}</code></a>
|
|
94
|
+
and lists the outgoing messages through
|
|
95
|
+
<a href="/admin/reference/outbox#getV1Outbox" class="link link-animated"><code>GET /v1/outbox</code></a>, with the
|
|
96
|
+
calls to retry, send now or remove a message beside it.</p>
|
|
97
|
+
<p class="mb-0"><a href="https://learn.emailengine.app/docs/advanced/queue-management" target="_blank"
|
|
98
|
+
rel="noopener noreferrer" referrerpolicy="no-referrer" class="link link-animated">Learn more about the queues</a>.</p>
|
|
99
|
+
</div>
|
|
100
|
+
{{/ui/details}}
|
|
101
|
+
|
|
102
|
+
{{> queue_clean_modal}}
|
|
103
|
+
|
|
104
|
+
<script data-cfasync="false" src="/static/js/queues.js" defer></script>
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
{{!-- One queue entry. Leads with what it is and what happened to it; the raw BullMQ record is
|
|
2
|
+
at the bottom, collapsed, for support cases. --}}
|
|
3
|
+
{{> ui/breadcrumb parentHref="/admin/queues" parentLabel="Queues" midHref=listHref midLabel=queue.label current=entry.title class="mb-6"}}
|
|
4
|
+
|
|
5
|
+
{{!-- The actions sit in the page header, at the right, as on the queue page: the one that moves
|
|
6
|
+
the entry on (send now, retry) as a button, the removal in the kebab at the end of the row,
|
|
7
|
+
where its menu opens leftward over the content. They are plain POST forms, so they work
|
|
8
|
+
before the page script has run and without it. An entry a worker is running offers nothing;
|
|
9
|
+
its state badge says so. --}}
|
|
10
|
+
{{#> ui/page-header title=entry.title icon=queue.icon badgeLabel=entry.stateInfo.label badgeVariant=entry.stateInfo.variant class="mb-6"}}
|
|
11
|
+
{{> ui/btn label="Back to list" href=listHref bare=true style="soft" size="sm" icon="icon-[tabler--arrow-left]"}}
|
|
12
|
+
{{#if entry.canPromote}}
|
|
13
|
+
<form method="post" action="{{entry.url}}/promote">
|
|
14
|
+
<input type="hidden" name="crumb" value="{{crumb}}">
|
|
15
|
+
<input type="hidden" name="next" value="{{currentUrl}}">
|
|
16
|
+
{{> ui/btn label="Send now" type="submit" variant="primary" size="sm" icon="icon-[tabler--send]"}}
|
|
17
|
+
</form>
|
|
18
|
+
{{/if}}
|
|
19
|
+
{{#if entry.canRetry}}
|
|
20
|
+
<form method="post" action="{{entry.url}}/retry">
|
|
21
|
+
<input type="hidden" name="crumb" value="{{crumb}}">
|
|
22
|
+
<input type="hidden" name="next" value="{{currentUrl}}">
|
|
23
|
+
{{> ui/btn label="Retry" type="submit" variant="primary" size="sm" icon="icon-[tabler--refresh]"}}
|
|
24
|
+
</form>
|
|
25
|
+
{{else if entry.retryBlockedReason}}
|
|
26
|
+
{{!-- A failed message whose content is gone keeps the button, disabled, so the reader learns why
|
|
27
|
+
from the tooltip rather than wondering where Retry went --}}
|
|
28
|
+
{{#> ui/tooltip text=entry.retryBlockedReason placement="bottom"}}
|
|
29
|
+
{{> ui/btn label="Retry" variant="primary" size="sm" icon="icon-[tabler--refresh]" disabled=true}}
|
|
30
|
+
{{/ui/tooltip}}
|
|
31
|
+
{{/if}}
|
|
32
|
+
{{#if entry.canRemove}}
|
|
33
|
+
{{> ui/overflow-menu label="More entry actions" deleteLabel="Remove from queue" deleteModal="#removeJob"}}
|
|
34
|
+
{{/if}}
|
|
35
|
+
{{/ui/page-header}}
|
|
36
|
+
|
|
37
|
+
{{#if entry.failure}}
|
|
38
|
+
{{#if entry.isRetryWait}}
|
|
39
|
+
{{#> ui/alert-banner variant="warning" title=(concat "Last attempt failed: " entry.failure.label)}}
|
|
40
|
+
<div class="break-words text-sm"><code>{{entry.failure.reason}}</code></div>
|
|
41
|
+
<div class="text-sm mt-1">Attempt {{entry.attemptsLabel}}. The next one runs <span class="relative-time" data-time="{{entry.dueAt}}"></span>, or now if you promote it.</div>
|
|
42
|
+
{{/ui/alert-banner}}
|
|
43
|
+
{{else}}
|
|
44
|
+
{{#> ui/alert-banner variant="error" title=entry.failure.label}}
|
|
45
|
+
<div class="break-words text-sm"><code>{{entry.failure.reason}}</code></div>
|
|
46
|
+
<div class="text-sm mt-1">
|
|
47
|
+
{{#equals entry.state "failed"}}
|
|
48
|
+
{{#if entry.failure.permanent}}Given up on without using the remaining attempts, because retrying could not have helped.{{else}}Given up on after {{entry.attemptsLabel}} attempts.{{/if}}
|
|
49
|
+
{{#equals queue.name "submit"}}
|
|
50
|
+
{{#if entry.hasContent}}The message content is still stored, so it can be retried from here.{{else}}{{entry.retryBlockedReason}}{{/if}}
|
|
51
|
+
{{/equals}}
|
|
52
|
+
{{else}}
|
|
53
|
+
Attempt {{entry.attemptsLabel}}.
|
|
54
|
+
{{/equals}}
|
|
55
|
+
</div>
|
|
56
|
+
{{/ui/alert-banner}}
|
|
57
|
+
{{/if}}
|
|
58
|
+
{{/if}}
|
|
59
|
+
|
|
60
|
+
{{#> ui/card}}
|
|
61
|
+
<dl class="ee-dl">
|
|
62
|
+
{{#equals queue.name "submit"}}
|
|
63
|
+
<dt>Account</dt>
|
|
64
|
+
<dd>{{> queue_cell_account account=entry.account accountKnown=entry.accountKnown}}</dd>
|
|
65
|
+
|
|
66
|
+
{{#if entry.from}}
|
|
67
|
+
<dt>From</dt>
|
|
68
|
+
<dd>{{entry.from}}</dd>
|
|
69
|
+
{{/if}}
|
|
70
|
+
|
|
71
|
+
{{#if entry.to}}
|
|
72
|
+
<dt>To</dt>
|
|
73
|
+
<dd>{{#each entry.to}}<div>{{this}}</div>{{/each}}</dd>
|
|
74
|
+
{{/if}}
|
|
75
|
+
|
|
76
|
+
<dt>Subject</dt>
|
|
77
|
+
<dd>{{#if entry.subject}}{{entry.subject}}{{else}}<span class="text-base-content/60">(no subject)</span>{{/if}}</dd>
|
|
78
|
+
|
|
79
|
+
{{#if entry.messageId}}
|
|
80
|
+
<dt>Message-ID</dt>
|
|
81
|
+
<dd><code class="break-all">{{entry.messageId}}</code></dd>
|
|
82
|
+
{{/if}}
|
|
83
|
+
|
|
84
|
+
<dt>Queue ID</dt>
|
|
85
|
+
<dd>{{> ui/copy-field id="queue-id" value=entry.id ariaLabel="Queue ID" small=true join=true class="max-w-md"}}</dd>
|
|
86
|
+
|
|
87
|
+
{{#if entry.gateway}}
|
|
88
|
+
<dt>Gateway</dt>
|
|
89
|
+
<dd><a href="/admin/gateways/gateway/{{urlpart entry.gateway}}" class="link link-animated">{{entry.gateway}}</a></dd>
|
|
90
|
+
{{/if}}
|
|
91
|
+
|
|
92
|
+
{{#if entry.source}}
|
|
93
|
+
<dt>Submitted through</dt>
|
|
94
|
+
<dd>{{entry.source}}</dd>
|
|
95
|
+
{{/if}}
|
|
96
|
+
|
|
97
|
+
{{#if entry.idempotencyKey}}
|
|
98
|
+
<dt>Idempotency key</dt>
|
|
99
|
+
<dd><code>{{entry.idempotencyKey}}</code></dd>
|
|
100
|
+
{{/if}}
|
|
101
|
+
{{else}}
|
|
102
|
+
{{#equals queue.name "notify"}}
|
|
103
|
+
<dt>Event</dt>
|
|
104
|
+
<dd><code>{{entry.event}}</code></dd>
|
|
105
|
+
|
|
106
|
+
<dt>Account</dt>
|
|
107
|
+
<dd>{{> queue_cell_account account=entry.account accountKnown=entry.accountKnown instance="Instance event"}}</dd>
|
|
108
|
+
|
|
109
|
+
<dt>Target</dt>
|
|
110
|
+
<dd>
|
|
111
|
+
{{#if entry.routeId}}
|
|
112
|
+
{{#if entry.routeKnown}}
|
|
113
|
+
Webhook route <a href="/admin/webhooks/webhook/{{urlpart entry.routeId}}" class="link link-animated">{{entry.routeName}}</a>{{#if entry.hasMapping}} <span class="text-base-content/60">(payload mapped by the route)</span>{{/if}}
|
|
114
|
+
{{else}}
|
|
115
|
+
{{> ui/badge label="Route deleted" variant="warning" soft=true}} <span class="text-base-content/60">The route this delivery was queued for no longer exists, so the worker skips it.</span>
|
|
116
|
+
{{/if}}
|
|
117
|
+
{{else}}
|
|
118
|
+
<span>The default webhook: the account's own URL if it has one, otherwise the instance setting. Resolved when the delivery runs.</span>
|
|
119
|
+
{{/if}}
|
|
120
|
+
</dd>
|
|
121
|
+
|
|
122
|
+
{{#if entry.about}}
|
|
123
|
+
<dt>About</dt>
|
|
124
|
+
<dd>{{entry.about}}</dd>
|
|
125
|
+
{{/if}}
|
|
126
|
+
|
|
127
|
+
{{#if entry.path}}
|
|
128
|
+
<dt>Folder</dt>
|
|
129
|
+
<dd><code>{{entry.path}}</code>{{#if entry.specialUse}} <span class="text-base-content/60">{{entry.specialUse}}</span>{{/if}}</dd>
|
|
130
|
+
{{/if}}
|
|
131
|
+
|
|
132
|
+
<dt>Payload</dt>
|
|
133
|
+
<dd>{{entry.payloadSizeLabel}}</dd>
|
|
134
|
+
|
|
135
|
+
<dt>Job ID</dt>
|
|
136
|
+
<dd><code>{{entry.id}}</code></dd>
|
|
137
|
+
{{else}}
|
|
138
|
+
<dt>Export</dt>
|
|
139
|
+
<dd><code>{{entry.exportId}}</code></dd>
|
|
140
|
+
|
|
141
|
+
<dt>Account</dt>
|
|
142
|
+
<dd>{{> queue_cell_account account=entry.account accountKnown=entry.accountKnown}}{{#if entry.accountKnown}} <span class="text-base-content/60">(manage the export from the account page)</span>{{/if}}</dd>
|
|
143
|
+
{{/equals}}
|
|
144
|
+
{{/equals}}
|
|
145
|
+
</dl>
|
|
146
|
+
|
|
147
|
+
<hr class="my-4">
|
|
148
|
+
|
|
149
|
+
<dl class="ee-dl">
|
|
150
|
+
<dt>Queued</dt>
|
|
151
|
+
<dd><span class="local-date-time" data-time="{{entry.created}}"></span> <span class="text-base-content/60">(<span class="relative-time" data-time="{{entry.created}}"></span>)</span></dd>
|
|
152
|
+
|
|
153
|
+
{{#if entry.isScheduledSend}}
|
|
154
|
+
<dt>Scheduled for</dt>
|
|
155
|
+
<dd><span class="local-date-time" data-time="{{entry.scheduled}}"></span> <span class="text-base-content/60">(<span class="relative-time" data-time="{{entry.scheduled}}"></span>)</span></dd>
|
|
156
|
+
{{/if}}
|
|
157
|
+
|
|
158
|
+
{{#if entry.processedOn}}
|
|
159
|
+
<dt>Last attempt started</dt>
|
|
160
|
+
<dd><span class="local-date-time" data-time="{{entry.processedOn}}"></span> <span class="text-base-content/60">(<span class="relative-time" data-time="{{entry.processedOn}}"></span>)</span></dd>
|
|
161
|
+
{{/if}}
|
|
162
|
+
|
|
163
|
+
{{#if entry.finishedOn}}
|
|
164
|
+
<dt>Finished</dt>
|
|
165
|
+
<dd><span class="local-date-time" data-time="{{entry.finishedOn}}"></span> <span class="text-base-content/60">(<span class="relative-time" data-time="{{entry.finishedOn}}"></span>)</span></dd>
|
|
166
|
+
{{/if}}
|
|
167
|
+
|
|
168
|
+
<dt>Attempts</dt>
|
|
169
|
+
<dd>{{entry.attemptsLabel}}{{#if entry.duration}} <span class="text-base-content/60">(last attempt took {{entry.duration}} ms)</span>{{/if}}</dd>
|
|
170
|
+
|
|
171
|
+
{{#if entry.isRetryWait}}
|
|
172
|
+
<dt>Next attempt</dt>
|
|
173
|
+
<dd><span class="local-date-time" data-time="{{entry.dueAt}}"></span> <span class="text-base-content/60">(<span class="relative-time" data-time="{{entry.dueAt}}"></span>, at the latest)</span></dd>
|
|
174
|
+
{{/if}}
|
|
175
|
+
|
|
176
|
+
{{#if entry.outcome.response}}
|
|
177
|
+
<dt>Server response</dt>
|
|
178
|
+
<dd><code class="break-all">{{entry.outcome.response}}</code></dd>
|
|
179
|
+
{{/if}}
|
|
180
|
+
|
|
181
|
+
{{#equals entry.outcome.status "delivered"}}
|
|
182
|
+
<dt>Delivered</dt>
|
|
183
|
+
<dd>The endpoint answered <code>{{entry.outcome.statusCode}}</code></dd>
|
|
184
|
+
{{/equals}}
|
|
185
|
+
</dl>
|
|
186
|
+
{{/ui/card}}
|
|
187
|
+
|
|
188
|
+
{{#> ui/details summary="Raw queue record" summarySmall="the job as BullMQ stores it"}}
|
|
189
|
+
<div class="space-y-4 text-sm">
|
|
190
|
+
<div>
|
|
191
|
+
<div class="label-text mb-1">Job name: <code>{{raw.name}}</code></div>
|
|
192
|
+
</div>
|
|
193
|
+
<div>
|
|
194
|
+
<div class="label-text mb-1">Data</div>
|
|
195
|
+
<pre class="ee-code-block"><code>{{json raw.data}}</code></pre>
|
|
196
|
+
</div>
|
|
197
|
+
<div>
|
|
198
|
+
<div class="label-text mb-1">Options</div>
|
|
199
|
+
<pre class="ee-code-block"><code>{{json raw.opts}}</code></pre>
|
|
200
|
+
</div>
|
|
201
|
+
{{#if raw.progress}}
|
|
202
|
+
<div>
|
|
203
|
+
<div class="label-text mb-1">Progress</div>
|
|
204
|
+
<pre class="ee-code-block"><code>{{json raw.progress}}</code></pre>
|
|
205
|
+
</div>
|
|
206
|
+
{{/if}}
|
|
207
|
+
{{#if raw.returnvalue}}
|
|
208
|
+
<div>
|
|
209
|
+
<div class="label-text mb-1">Return value</div>
|
|
210
|
+
<pre class="ee-code-block"><code>{{json raw.returnvalue}}</code></pre>
|
|
211
|
+
</div>
|
|
212
|
+
{{/if}}
|
|
213
|
+
{{#if raw.stacktrace}}
|
|
214
|
+
<div>
|
|
215
|
+
<div class="label-text mb-1">Stack traces of the failed attempts</div>
|
|
216
|
+
<pre class="ee-code-block"><code>{{raw.stacktrace}}</code></pre>
|
|
217
|
+
</div>
|
|
218
|
+
{{/if}}
|
|
219
|
+
</div>
|
|
220
|
+
{{/ui/details}}
|
|
221
|
+
|
|
222
|
+
{{> queue_job_actions removeAction=(concat entry.url "/remove") removeName=entry.title}}
|
|
223
|
+
|
|
224
|
+
<script data-cfasync="false" src="/static/js/queues.js" defer></script>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{{!-- One queue, one state at a time. The state tabs are links (the page is server-rendered per
|
|
2
|
+
state), the listing is the rows of that state, and the search is a bounded scan of it -
|
|
3
|
+
the notice under the toolbar says how far it looked. --}}
|
|
4
|
+
{{> ui/breadcrumb parentHref="/admin/queues" parentLabel="Queues" current=queue.label class="mb-6"}}
|
|
5
|
+
|
|
6
|
+
{{#> ui/page-header title=queue.title icon=queue.icon subtitle=queue.description class="mb-6"}}
|
|
7
|
+
<span data-queue-paused="{{queue.name}}" class="{{#unless queue.isPaused}}hidden{{/unless}}">
|
|
8
|
+
{{> ui/badge label="Paused" variant="warning" title="Workers take nothing new from this queue until it is resumed"}}
|
|
9
|
+
</span>
|
|
10
|
+
{{> ui/btn label="Refresh" href=currentUrl bare=true style="soft" size="sm" icon="icon-[tabler--refresh]"}}
|
|
11
|
+
{{> queue_pause_controls name=queue.name isPaused=queue.isPaused next=currentUrl}}
|
|
12
|
+
{{#> ui/overflow-menu label="More queue actions"}}
|
|
13
|
+
<li><a class="dropdown-item" href="/admin/queues">All queues</a></li>
|
|
14
|
+
{{> queue_clean_items name=queue.name title=queue.title nounPlural=queue.nounPlural}}
|
|
15
|
+
{{/ui/overflow-menu}}
|
|
16
|
+
{{/ui/page-header}}
|
|
17
|
+
|
|
18
|
+
<div data-queue-paused="{{queue.name}}" class="{{#unless queue.isPaused}}hidden{{/unless}}">
|
|
19
|
+
{{#> ui/alert-banner variant="warning" title="This queue is paused" icon="icon-[tabler--player-pause]"}}
|
|
20
|
+
<div class="text-sm">New entries keep arriving and wait here until the queue is resumed. An attempt that was already running finishes.</div>
|
|
21
|
+
{{/ui/alert-banner}}
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<nav class="tabs tabs-bordered mb-6" aria-label="Entries by state">
|
|
25
|
+
{{#each states}}
|
|
26
|
+
<a class="tab{{#if active}} tab-active{{/if}}" href="{{url}}" title="{{description}}">{{label}}
|
|
27
|
+
<span class="badge badge-sm badge-soft ms-1 {{#if active}}badge-{{eeColor variant}}{{else}}badge-neutral{{/if}}" data-queue-count="{{@root.queue.name}}:{{name}}">{{formatInteger count @root.userLocale}}</span></a>
|
|
28
|
+
{{/each}}
|
|
29
|
+
</nav>
|
|
30
|
+
|
|
31
|
+
<div class="card bg-base-100 shadow-md mb-6">
|
|
32
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
33
|
+
<div class="min-w-0">
|
|
34
|
+
<h6 class="card-title text-primary mb-0">{{state.label}}</h6>
|
|
35
|
+
<p class="text-base-content/60 text-sm mt-1 mb-0">{{state.description}}.</p>
|
|
36
|
+
{{> queue_retention_note}}
|
|
37
|
+
</div>
|
|
38
|
+
<form method="get" action="/admin/queues/{{queue.name}}" class="flex items-center gap-2" role="search">
|
|
39
|
+
<input type="hidden" name="state" value="{{state.name}}">
|
|
40
|
+
{{#if filter.account}}<input type="hidden" name="account" value="{{filter.account}}">{{/if}}
|
|
41
|
+
{{#if filter.route}}<input type="hidden" name="route" value="{{filter.route}}">{{/if}}
|
|
42
|
+
{{> ui/search-input name="query" value=filter.query placeholder=queue.searchHint class="w-72"}}
|
|
43
|
+
{{> ui/btn label="Search" type="submit" variant="neutral" style="soft" size="sm"}}
|
|
44
|
+
</form>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
{{#if filter.active}}
|
|
48
|
+
{{!-- What was searched, in numbers the reader can trust: the scan is bounded, and a search
|
|
49
|
+
that stopped short of the oldest entries says so instead of reporting zero matches as
|
|
50
|
+
if there were none --}}
|
|
51
|
+
<div class="border-base-content/10 flex flex-wrap items-center justify-between gap-2 border-b px-6 py-3 text-sm">
|
|
52
|
+
<span>
|
|
53
|
+
{{#if filter.label}}{{filter.label}}{{else}}Entries{{/if}}{{#if filter.query}} matching <strong>“{{filter.query}}”</strong>{{/if}}:
|
|
54
|
+
<strong>{{formatInteger listing.total userLocale}}</strong> of the {{formatInteger listing.scanned userLocale}} {{state.label}} entries searched{{#if listing.scanLimited}}.
|
|
55
|
+
Only the {{formatInteger scanLimit userLocale}} newest of {{formatInteger listing.stateTotal userLocale}} were searched{{/if}}.
|
|
56
|
+
</span>
|
|
57
|
+
<a href="{{clearHref}}" class="link link-animated">Clear search</a>
|
|
58
|
+
</div>
|
|
59
|
+
{{/if}}
|
|
60
|
+
|
|
61
|
+
{{#if listing.entries}}
|
|
62
|
+
<div class="overflow-x-auto">
|
|
63
|
+
{{#equals queue.name "submit"}}
|
|
64
|
+
{{> queue_rows_submit}}
|
|
65
|
+
{{else}}
|
|
66
|
+
{{#equals queue.name "notify"}}
|
|
67
|
+
{{> queue_rows_notify}}
|
|
68
|
+
{{else}}
|
|
69
|
+
{{> queue_rows_export}}
|
|
70
|
+
{{/equals}}
|
|
71
|
+
{{/equals}}
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
{{> ui/pagination showPaging=showPaging prevPage=prevPage nextPage=nextPage pageLinks=pageLinks}}
|
|
75
|
+
{{else}}
|
|
76
|
+
<div class="card-body">
|
|
77
|
+
{{#if filter.active}}
|
|
78
|
+
{{#> ui/empty-state icon="icon-[tabler--search-off]" title=(concat "No " state.name " " queue.nounPlural " match")}}
|
|
79
|
+
Try another search, or <a href="{{clearHref}}" class="link link-animated">show every {{state.name}} entry</a>.
|
|
80
|
+
{{/ui/empty-state}}
|
|
81
|
+
{{else}}
|
|
82
|
+
{{#> ui/empty-state icon=queue.icon title=(concat "No " state.name " " queue.nounPlural)}}
|
|
83
|
+
{{state.description}}.
|
|
84
|
+
{{/ui/empty-state}}
|
|
85
|
+
{{/if}}
|
|
86
|
+
</div>
|
|
87
|
+
{{/if}}
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
{{> queue_job_actions}}
|
|
91
|
+
{{> queue_clean_modal}}
|
|
92
|
+
|
|
93
|
+
<script data-cfasync="false" src="/static/js/queues.js" defer></script>
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
{{#> ui/tooltip text="How many times this route has been triggered"}}
|
|
47
47
|
{{> ui/badge label=webhook.tcount variant="neutral" soft=true}}
|
|
48
48
|
{{/ui/tooltip}}
|
|
49
|
+
<a href="/admin/queues/notify?state=failed&route={{urlpart webhook.id}}" class="link link-animated text-sm ms-2">Failed deliveries</a>
|
|
50
|
+
<span class="text-base-content/40 text-sm">|</span>
|
|
51
|
+
<a href="/admin/queues/notify?route={{urlpart webhook.id}}" class="link link-animated text-sm">Waiting</a>
|
|
49
52
|
</dd>
|
|
50
53
|
|
|
51
54
|
{{#if webhook.customHeaders}}
|
package/workers/api.js
CHANGED
|
@@ -115,7 +115,6 @@ const {
|
|
|
115
115
|
} = consts;
|
|
116
116
|
|
|
117
117
|
const registerApiRoutes = require('../lib/api-routes');
|
|
118
|
-
const bullBoardRoutes = require('../lib/api-routes/bull-board-routes');
|
|
119
118
|
const { securityHeadersExt, attachSecurityContext, isAdminPath, isMachineRoute, isSecureOrigin, CSP_MODES } = require('../lib/security-headers');
|
|
120
119
|
const { registerHandlebarsHelpers } = require('../lib/handlebars-helpers');
|
|
121
120
|
|
|
@@ -3263,9 +3262,6 @@ const init = async () => {
|
|
|
3263
3262
|
// setup web UI
|
|
3264
3263
|
routesUi(server, call);
|
|
3265
3264
|
|
|
3266
|
-
// setup "Bull board" routes
|
|
3267
|
-
await bullBoardRoutes({ server });
|
|
3268
|
-
|
|
3269
3265
|
server.route({
|
|
3270
3266
|
method: 'GET',
|
|
3271
3267
|
path: '/metrics',
|
package/workers/submit.js
CHANGED
|
@@ -19,7 +19,7 @@ const { redis, queueConf, submitQueue, logBullErrors } = require('../lib/db');
|
|
|
19
19
|
const { Worker, UnrecoverableError } = require('bullmq');
|
|
20
20
|
const { Account } = require('../lib/account');
|
|
21
21
|
const getSecret = require('../lib/get-secret');
|
|
22
|
-
const { decodeQueueEntry } = require('../lib/outbox');
|
|
22
|
+
const { decodeQueueEntry, retainFailedContent } = require('../lib/outbox');
|
|
23
23
|
|
|
24
24
|
const { EMAIL_FAILED_NOTIFY } = require('../lib/consts');
|
|
25
25
|
|
|
@@ -296,7 +296,11 @@ const submitWorker = new Worker(
|
|
|
296
296
|
error: {
|
|
297
297
|
message: err.message,
|
|
298
298
|
code: err.code,
|
|
299
|
-
statusCode: err.statusCode
|
|
299
|
+
statusCode: err.statusCode,
|
|
300
|
+
// the SMTP reply code, when there was a reply: what decides whether the
|
|
301
|
+
// failure is permanent (lib/delivery-error.js), kept so the queue browser
|
|
302
|
+
// can say so without a rule of its own
|
|
303
|
+
responseCode: err.responseCode
|
|
300
304
|
},
|
|
301
305
|
networkRouting: err.info?.networkRouting
|
|
302
306
|
});
|
|
@@ -399,16 +403,26 @@ submitWorker.on('failed', async job => {
|
|
|
399
403
|
// BullMQ sets finishedOn only when the job is done for good, which covers both exhausting its
|
|
400
404
|
// attempts and being ended early by the UnrecoverableError thrown for a permanent rejection.
|
|
401
405
|
if (job.finishedOn) {
|
|
402
|
-
// this was final attempt
|
|
406
|
+
// this was the final attempt
|
|
403
407
|
if (!job.data.queueId && job.data.qId) {
|
|
404
408
|
// this value was used to be called qId
|
|
405
409
|
job.data.queueId = job.data.qId;
|
|
406
410
|
}
|
|
407
411
|
if (job.data && job.data.account && job.data.queueId) {
|
|
412
|
+
// The content stays stored, within the failed-content bounds, so the message can be
|
|
413
|
+
// retried from the queue browser or the outbox API. It used to be deleted here, which
|
|
414
|
+
// left a failed job that a retry could put back into the queue but that then found
|
|
415
|
+
// nothing to send.
|
|
408
416
|
try {
|
|
409
|
-
await
|
|
417
|
+
await retainFailedContent({ account: job.data.account, queueId: job.data.queueId, finishedOn: job.finishedOn, logger });
|
|
410
418
|
} catch (err) {
|
|
411
|
-
logger.error({
|
|
419
|
+
logger.error({
|
|
420
|
+
msg: 'Failed to retain the content of a failed message',
|
|
421
|
+
account: job.data.account,
|
|
422
|
+
queueId: job.data.queueId,
|
|
423
|
+
messageId: job.data.messageId,
|
|
424
|
+
err
|
|
425
|
+
});
|
|
412
426
|
}
|
|
413
427
|
// report as failed
|
|
414
428
|
try {
|
package/workers/webhooks.js
CHANGED
|
@@ -505,10 +505,23 @@ const notifyWorker = new Worker(
|
|
|
505
505
|
event: job.name,
|
|
506
506
|
status: 'success'
|
|
507
507
|
});
|
|
508
|
+
|
|
509
|
+
// Stored by BullMQ as the job's return value in the same write that completes it, so
|
|
510
|
+
// a retained completed job shows what the endpoint answered and how long it took
|
|
511
|
+
return { status: 'delivered', statusCode: status, duration };
|
|
508
512
|
} catch (err) {
|
|
509
513
|
// egress and redirect failures are thrown as UnrecoverableError below, so they are final as well
|
|
510
514
|
let isFinalAttempt = willBeFinalAttempt(job) || isUnrecoverableWebhookError(err);
|
|
511
515
|
|
|
516
|
+
// BullMQ keeps only the message of a failure on the job. The code and the HTTP status
|
|
517
|
+
// are what explain it, so they are recorded the way the submit worker records its own
|
|
518
|
+
// delivery errors, for the queue browser to read back
|
|
519
|
+
try {
|
|
520
|
+
await job.updateProgress({ status: 'error', error: { message: err.message, code: err.code, statusCode: err.statusCode }, duration });
|
|
521
|
+
} catch (progressErr) {
|
|
522
|
+
// ignore
|
|
523
|
+
}
|
|
524
|
+
|
|
512
525
|
logger[isFinalAttempt ? 'error' : 'warn']({
|
|
513
526
|
msg: 'Failed posting webhook',
|
|
514
527
|
action: 'webhook',
|