Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66559589
FeedPublisherHTTPWorker.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jun 11, 09:44
Size
733 B
Mime Type
text/x-php
Expires
Thu, Jun 13, 09:44 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18239403
Attached To
rPH Phabricator
FeedPublisherHTTPWorker.php
View Options
<?php
final
class
FeedPublisherHTTPWorker
extends
FeedPushWorker
{
protected
function
doWork
()
{
$story
=
$this
->
loadFeedStory
();
$data
=
$story
->
getStoryData
();
$uri
=
idx
(
$this
->
getTaskData
(),
'uri'
);
$post_data
=
array
(
'storyID'
=>
$data
->
getID
(),
'storyType'
=>
$data
->
getStoryType
(),
'storyData'
=>
$data
->
getStoryData
(),
'storyAuthorPHID'
=>
$data
->
getAuthorPHID
(),
'epoch'
=>
$data
->
getEpoch
(),
);
id
(
new
HTTPFuture
(
$uri
,
$post_data
))
->
setMethod
(
'POST'
)
->
setTimeout
(
30
)
->
resolvex
();
}
public
function
getWaitBeforeRetry
(
PhabricatorWorkerTask
$task
)
{
return
max
(
$task
->
getFailureCount
(),
1
)
*
60
;
}
}
Event Timeline
Log In to Comment