akkoma/lib/pleroma/workers
Oneric 2fee79e1f5 Use apropriate cancellation type for oban jobs
:discard marks jobs as "discarded", i.e. jobs which permanently failed
due to e.g. exhausting all retries or explicitly being discared due to a
fatal error.
:cancel marks jobs as "cancelled" which does not imply failure.

While neither method counts as a job "exception" in the set of
telemetries we currently export via Prometheus, the different state
is visible in the (not-exported) metadata of oban job telemetry.
We can use handlers of those events to build bespoke statistics.

Ideally we'd like to distinguish in the receiver worker between
"invalid" and "already present or delete of unknown" documents,
but this is cumbersome to get get right with a list of
free-form, human-readable descriptions oof the violated constraints.
For now, just count both as an fatal error.
        # but that is cumbersome to get right with a list of string error descriptions
2025-04-15 19:40:26 +02:00
..
cron Prune old Update activities 2024-02-17 16:57:40 +01:00
attachments_cleanup_worker.ex Delay attachment deletion 2025-01-03 20:49:11 +01:00
background_worker.ex Spin off imports into n oban jobs 2022-11-27 21:45:41 +00:00
backup_worker.ex and i yoink (#275) 2022-11-14 15:07:26 +00:00
mailer_worker.ex elixir 1.18 formatting 2025-03-02 11:54:00 +00:00
mute_expire_worker.ex elixir 1.18 formatting 2025-03-02 11:54:00 +00:00
nodeinfo_fetcher_worker.ex Don't enqueue a plethora of unnecessary NodeInfoFetcher jobs 2025-01-07 20:27:27 +01:00
poll_worker.ex PollWorker defensive checks 2021-07-18 11:10:22 -05:00
publisher_worker.ex elixir 1.18 formatting 2025-03-02 11:54:00 +00:00
purge_expired_activity.ex and i yoink (#275) 2022-11-14 15:07:26 +00:00
purge_expired_filter.ex and i yoink (#275) 2022-11-14 15:07:26 +00:00
purge_expired_token.ex and i yoink (#275) 2022-11-14 15:07:26 +00:00
receiver_worker.ex Use apropriate cancellation type for oban jobs 2025-04-15 19:40:26 +02:00
remote_fetcher_worker.ex Use apropriate cancellation type for oban jobs 2025-04-15 19:40:26 +02:00
rich_media_expiration_worker.ex RichMedia refactor 2024-06-09 17:33:48 +01:00
scheduled_activity_worker.ex fix for scheduled post with poll 2021-02-01 18:22:26 +03:00
search_indexing_worker.ex Don't create noop SearchIndexingWorker jobs for passive index 2025-01-07 20:27:27 +01:00
web_pusher_worker.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
worker_helper.ex workers: make custom filtering ahead of enqueue possible 2025-01-07 20:27:27 +01:00