2022-07-08 14:27:06 +12:00
|
|
|
<?php
|
2022-07-14 14:04:31 +12:00
|
|
|
|
2022-11-14 23:10:47 +13:00
|
|
|
namespace Appwrite\Platform\Services;
|
2022-07-08 14:27:06 +12:00
|
|
|
|
2024-01-11 16:08:40 +13:00
|
|
|
use Appwrite\Platform\Tasks\CalcTierStats;
|
2024-02-12 14:18:19 +13:00
|
|
|
use Appwrite\Platform\Tasks\CreateInfMetric;
|
2024-01-11 16:08:40 +13:00
|
|
|
use Appwrite\Platform\Tasks\DeleteOrphanedProjects;
|
|
|
|
use Appwrite\Platform\Tasks\DevGenerateTranslations;
|
2022-11-14 23:01:41 +13:00
|
|
|
use Appwrite\Platform\Tasks\Doctor;
|
2024-01-11 16:08:40 +13:00
|
|
|
use Appwrite\Platform\Tasks\GetMigrationStats;
|
|
|
|
use Appwrite\Platform\Tasks\Hamster;
|
2022-11-14 23:01:41 +13:00
|
|
|
use Appwrite\Platform\Tasks\Install;
|
|
|
|
use Appwrite\Platform\Tasks\Maintenance;
|
|
|
|
use Appwrite\Platform\Tasks\Migrate;
|
2024-01-11 16:08:40 +13:00
|
|
|
use Appwrite\Platform\Tasks\PatchRecreateRepositoriesDocuments;
|
2024-02-12 14:18:19 +13:00
|
|
|
use Appwrite\Platform\Tasks\QueueCount;
|
|
|
|
use Appwrite\Platform\Tasks\QueueRetry;
|
2022-11-14 23:01:41 +13:00
|
|
|
use Appwrite\Platform\Tasks\SDKs;
|
|
|
|
use Appwrite\Platform\Tasks\SSL;
|
2024-01-11 16:08:40 +13:00
|
|
|
use Appwrite\Platform\Tasks\ScheduleFunctions;
|
|
|
|
use Appwrite\Platform\Tasks\ScheduleMessages;
|
|
|
|
use Appwrite\Platform\Tasks\Specs;
|
|
|
|
use Appwrite\Platform\Tasks\Upgrade;
|
2022-11-14 23:01:41 +13:00
|
|
|
use Appwrite\Platform\Tasks\Vars;
|
|
|
|
use Appwrite\Platform\Tasks\Version;
|
|
|
|
use Appwrite\Platform\Tasks\VolumeSync;
|
2024-01-11 16:08:40 +13:00
|
|
|
use Utopia\Platform\Service;
|
2022-07-08 14:27:06 +12:00
|
|
|
|
2022-11-14 23:01:41 +13:00
|
|
|
class Tasks extends Service
|
2022-07-14 14:04:31 +12:00
|
|
|
{
|
2022-07-13 18:26:22 +12:00
|
|
|
public function __construct()
|
2022-07-08 14:27:06 +12:00
|
|
|
{
|
2022-07-13 18:26:22 +12:00
|
|
|
$this->type = self::TYPE_CLI;
|
2022-07-13 19:02:55 +12:00
|
|
|
$this
|
2024-01-11 16:08:40 +13:00
|
|
|
->addAction(CalcTierStats::getName(), new CalcTierStats())
|
2024-02-12 14:18:19 +13:00
|
|
|
->addAction(CreateInfMetric::getName(), new CreateInfMetric())
|
2024-01-11 16:08:40 +13:00
|
|
|
->addAction(DeleteOrphanedProjects::getName(), new DeleteOrphanedProjects())
|
|
|
|
->addAction(DevGenerateTranslations::getName(), new DevGenerateTranslations())
|
2022-08-02 13:58:36 +12:00
|
|
|
->addAction(Doctor::getName(), new Doctor())
|
2024-01-11 16:08:40 +13:00
|
|
|
->addAction(GetMigrationStats::getName(), new GetMigrationStats())
|
|
|
|
->addAction(Hamster::getName(), new Hamster())
|
2022-08-02 13:58:36 +12:00
|
|
|
->addAction(Install::getName(), new Install())
|
|
|
|
->addAction(Maintenance::getName(), new Maintenance())
|
|
|
|
->addAction(Migrate::getName(), new Migrate())
|
2024-01-11 16:08:40 +13:00
|
|
|
->addAction(PatchRecreateRepositoriesDocuments::getName(), new PatchRecreateRepositoriesDocuments())
|
2024-02-12 14:18:19 +13:00
|
|
|
->addAction(QueueCount::getName(), new QueueCount())
|
|
|
|
->addAction(QueueRetry::getName(), new QueueRetry())
|
2022-08-02 13:58:36 +12:00
|
|
|
->addAction(SDKs::getName(), new SDKs())
|
2024-01-11 16:08:40 +13:00
|
|
|
->addAction(SSL::getName(), new SSL())
|
|
|
|
->addAction(ScheduleFunctions::getName(), new ScheduleFunctions())
|
|
|
|
->addAction(ScheduleMessages::getName(), new ScheduleMessages())
|
2023-05-24 03:58:49 +12:00
|
|
|
->addAction(Specs::getName(), new Specs())
|
2024-01-11 16:08:40 +13:00
|
|
|
->addAction(Upgrade::getName(), new Upgrade())
|
|
|
|
->addAction(Vars::getName(), new Vars())
|
|
|
|
->addAction(Version::getName(), new Version())
|
|
|
|
->addAction(VolumeSync::getName(), new VolumeSync())
|
2023-05-31 03:06:51 +12:00
|
|
|
;
|
2022-07-08 14:27:06 +12:00
|
|
|
}
|
|
|
|
}
|