mirror of
https://github.com/friendica/friendica
synced 2025-03-22 19:39:37 +00:00
28 lines
608 B
PHP
28 lines
608 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Worker;
|
|
|
|
use Friendica\Core\Logger;
|
|
use Friendica\Protocol\ActivityPub\Queue;
|
|
|
|
class ProcessQueue
|
|
{
|
|
/**
|
|
* Process queue entry
|
|
*
|
|
* @param int $id queue id
|
|
*
|
|
* @return void
|
|
*/
|
|
public static function execute(int $id)
|
|
{
|
|
Logger::info('Start processing queue entry', ['id' => $id]);
|
|
$result = Queue::process($id);
|
|
Logger::info('Successfully processed queue entry', ['result' => $result, 'id' => $id]);
|
|
}
|
|
}
|