Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101922882
20180214.harbor.01.aborted.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
Sat, Feb 15, 04:52
Size
623 B
Mime Type
text/x-php
Expires
Mon, Feb 17, 04:52 (2 d)
Engine
blob
Format
Raw Data
Handle
24246487
Attached To
rPH Phabricator
20180214.harbor.01.aborted.php
View Options
<?php
$table
=
new
HarbormasterBuildable
();
$conn
=
$table
->
establishConnection
(
'w'
);
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$buildable
)
{
if
(
$buildable
->
getBuildableStatus
()
!==
'building'
)
{
continue
;
}
$aborted
=
queryfx_one
(
$conn
,
'SELECT * FROM %T WHERE buildablePHID = %s AND buildStatus = %s
LIMIT 1'
,
id
(
new
HarbormasterBuild
())->
getTableName
(),
$buildable
->
getPHID
(),
'aborted'
);
if
(!
$aborted
)
{
continue
;
}
queryfx
(
$conn
,
'UPDATE %T SET buildableStatus = %s WHERE id = %d'
,
$table
->
getTableName
(),
'failed'
,
$buildable
->
getID
());
}
Event Timeline
Log In to Comment