| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\App\Http\Controllers; |
| 4 |
|
| 5 |
use FluentCart\Database\DataBackfills; |
| 6 |
|
| 7 |
class DataBackfillController extends Controller |
| 8 |
{ |
| 9 |
/** |
| 10 |
* Run pending one-shot data backfills within this request's budget. |
| 11 |
* The admin app silently re-calls this endpoint while the returned |
| 12 |
* status is 'running'; 'locked' means another request is already on it. |
| 13 |
*/ |
| 14 |
public function run() |
| 15 |
{ |
| 16 |
return $this->sendSuccess(DataBackfills::processPending()); |
| 17 |
} |
| 18 |
} |
| 19 |
|