akkoma/lib/pleroma
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
..
activity Fix tests 2024-06-09 18:28:00 +01:00
akkoma Add MRFs for direct message manipulation 2023-05-22 23:53:44 +01:00
captcha
collections Don't return garbage on failed collection fetches 2025-02-14 18:49:51 +01:00
config Remove proxy_remote vestiges 2024-06-16 01:21:52 +02:00
conversation
docs
ecto_type
emails Set customize_hostname_check for Swoosh.Adapters.SMTP 2024-12-18 14:37:27 -05:00
emoji cosmetic/emoji/pack: fix spelling 2025-02-14 22:10:25 +01:00
helpers
http Add pool timeouts 2024-06-09 17:20:29 +01:00
instances nodeinfo: lower log level of regular actions to debug 2025-01-07 20:27:28 +01:00
mfa
migration_helper
migrators Support elixir1.15 2023-08-03 17:44:09 +01:00
object Prevent key-actor mapping poisoning and key take overs 2025-02-14 22:10:25 +01:00
password
reverse_proxy
search Don't create noop SearchIndexingWorker jobs for passive index 2025-01-07 20:27:27 +01:00
tests
upload upload/filter/exiftool/strip: hide warnings from log 2025-03-18 01:01:47 +01:00
uploaders
user signing_key: don't retrieve superfluous fields when loading ap_id 2025-02-21 19:37:27 +01:00
web api/statuses: allow expires_in to override user-level status_ttl_default 2025-04-08 23:43:59 +02:00
workers Use apropriate cancellation type for oban jobs 2025-04-15 19:40:26 +02:00
activity.ex meilisearch: respect meili’s result ranking 2024-05-29 23:17:27 +00:00
announcement.ex
announcement_read_relationship.ex
application.ex fix oembed test 2024-06-09 21:17:12 +01:00
application_requirements.ex Rename StripLocation to StripMetadata for temporal-proofing reasons 2024-04-16 20:37:00 +02:00
bookmark.ex
caching.ex
captcha.ex
clippy.ex
config.ex
config_db.ex
constants.ex Don't try to handle non-media objects as media 2024-05-22 20:30:23 +02:00
conversation.ex
counter_cache.ex
data_migration.ex
delivery.ex
ecto_enums.ex
emoji-test.txt
emoji.ex
filter.ex
following_relationship.ex
formatter.ex
frontend.ex Convert all raw :zip usage to SafeZip 2025-02-14 22:10:25 +01:00
hashtag.ex
healthcheck.ex
html.ex Fix tests 2024-06-09 18:28:00 +01:00
http.ex Convert rich media backfill to oban task 2024-06-11 18:06:51 +01:00
instances.ex
iso639.ex
job_queue_monitor.ex Use fully qualified function capture for telementry event 2024-02-12 01:59:18 +01:00
jwt.ex
list.ex
logging.ex
maintenance.ex Support elixir1.15 2023-08-03 17:44:09 +01:00
maps.ex
marker.ex
mfa.ex
moderation_log.ex
notification.ex Require related object for notifications to filter on content 2023-06-14 19:41:48 +00:00
object.ex cosmetic/object: drop is_ prefix from is_tombstone_object? 2025-02-14 22:10:25 +01:00
object_tombstone.ex
otp_version.ex
pagination.ex
password.ex
password_reset_token.ex
prometheus_exporter.ex
registration.ex
release_tasks.ex
repo.ex
report_note.ex
reverse_proxy.ex Sanitise Content-Type of media proxy URLs 2024-03-18 22:33:10 -01:00
safe_zip.ex Add SafeZip module 2025-02-14 22:10:25 +01:00
scheduled_activity.ex Restrict media usage to owners 2024-05-22 20:30:18 +02:00
search.ex
signature.ex signature: refetch key upon verification failure 2025-02-21 19:37:27 +01:00
stats.ex stats: estimate remote user count 2025-01-07 20:27:28 +01:00
thread_mute.ex
upload.ex Drop activity_type override for uploads 2024-05-22 20:30:23 +02:00
user.ex signature: drop unecessary round trip over user 2025-02-14 22:10:25 +01:00
user_invite_token.ex
user_note.ex Make UserNote comment default to the empty string. 2023-04-27 05:22:12 +00:00
user_relationship.ex
utils.ex
web.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
xml_builder.ex