appwrite/src/Appwrite/Platform/Services/Tasks.php

44 lines
1.6 KiB
PHP
Raw Normal View History

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