feat(import): run podcast imports' processes asynchronously using tasks

- use codeigniter4/tasks project to handle cron tasks
- use yassinedoghri/podcast-feed project to parse feeds for imports
This commit is contained in:
Yassine Doghri 2023-06-21 16:17:11 +00:00
commit d8e1d4031d
106 changed files with 1805 additions and 1097 deletions

View file

@ -177,18 +177,6 @@ class PlatformModel extends Model
->insertBatch($podcastsPlatformsData);
}
/**
* @param mixed[] $podcastsPlatformsData
*/
public function createPodcastPlatforms(int $podcastId, array $podcastsPlatformsData): int | false
{
$this->clearCache($podcastId);
return $this->db
->table('podcasts_platforms')
->insertBatch($podcastsPlatformsData);
}
public function removePodcastPlatform(int $podcastId, string $platformSlug): bool | string
{
$this->clearCache($podcastId);