Page MenuHomePhorge

20180214.harbor.01.aborted.php
No OneTemporary

Size
623 B
Referenced Files
None
Subscribers
None

20180214.harbor.01.aborted.php

<?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());
}

File Metadata

Mime Type
text/x-php
Expires
Sun, May 4, 1:24 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
65636
Default Alt Text
20180214.harbor.01.aborted.php (623 B)

Event Timeline