Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85197723
user_refresh_worker.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
469 B
Referenced Files
None
Subscribers
None
user_refresh_worker.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Workers.UserRefreshWorker
do
use
Oban.Worker
,
queue
:
:background
,
max_attempts
:
1
,
unique
:
[
period
:
300
]
alias
Pleroma.User
@impl
true
def
perform
(%
Job
{
args
:
%{
"ap_id"
=>
ap_id
}})
do
User
.
fetch_by_ap_id
(
ap_id
)
end
@impl
true
def
timeout
(
_job
),
do
:
:timer
.
seconds
(
15
)
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Mon, Jun 29, 9:32 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1620285
Default Alt Text
user_refresh_worker.ex (469 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment