akkoma/test/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 Support elixir1.15 2023-08-03 17:44:09 +01:00
attachments_cleanup_worker_test.exs Delay attachment deletion 2025-01-03 20:49:11 +01:00
publisher_worker_test.exs and i yoink (#275) 2022-11-14 15:07:26 +00:00
purge_expired_activity_test.exs Add configurable timeline per oban job (#273) 2022-11-13 23:55:51 +00:00
purge_expired_filter_test.exs support for expires_in/expires_at in filters 2021-01-26 08:27:45 +03:00
purge_expired_token_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
receiver_worker_test.exs Use apropriate cancellation type for oban jobs 2025-04-15 19:40:26 +02:00
remote_fetcher_worker_test.exs Use apropriate cancellation type for oban jobs 2025-04-15 19:40:26 +02:00
scheduled_activity_worker_test.exs Add configurable timeline per oban job (#273) 2022-11-13 23:55:51 +00:00