aboutsummaryrefslogtreecommitdiff
path: root/tasks/manager.go
AgeCommit message (Collapse)AuthorFilesLines
2026-02-25Refactor anime update logic and task managementBobby1-39/+35
- Simplified title retrieval in AnimeUpdate and updateAnime functions. - Updated next airing checks to use new fields directly. - Removed unnecessary nil checks for titles in various functions. - Enhanced task management by eliminating redundant LastRun updates. - Improved dependency handling in triggerDependentTasks for better clarity and performance. - Streamlined Jikan API response structure by merging related fields. - Added StopRateLimiters function to rate limiter utilities for better control. - Refined episode title handling in TMDB and TVDB enrichment functions. - Introduced Stop method in MultiLimiter for graceful shutdown of rate limiters.
2026-02-24Refactor entities and repositories: add AnimeCharacter and ↵Bobby1-0/+4
CharacterVoiceActor types, update character handling in anime, and enhance producer enrichment logic
2026-02-09Refactor task management: enhance task status handling and trigger dependent ↵Bobby1-11/+74
tasks; improve producer sync logic to skip recently updated producers
2026-02-06Refactor task management and producer synchronizationBobby1-123/+32
- Updated TaskManager to utilize repositories for database operations, improving separation of concerns. - Enhanced logging functionality by replacing logger.Log with logger.Infof, logger.Warnf, and logger.Errorf for better readability and consistency. - Simplified ProducerSync function by removing unnecessary pagination logic and directly fetching producer data. - Introduced helper functions for calculating progress and managing task statuses. - Added new service for fetching and saving anime data, integrating multiple data sources (Jikan, Anilist, MALsync, TMDB, TVDB, Aniskip). - Created new types for task management and improved overall code organization. - Removed deprecated database calls and replaced them with repository methods for better maintainability.
2026-02-05Refactor Jikan API types: remove unused structures and add HTTP client ↵Bobby1-27/+68
configuration
2026-02-03Add support for manual task triggering: update AnimeSync to run after ↵Bobby1-0/+9
AnimeFetch and enhance task status retrieval
2026-02-03Enhance episode ID generation and task management: include MAL ID and ↵Bobby1-0/+24
episode number for uniqueness, and update AnimeSync task to run weekly with last run tracking
2025-05-09refactored typesBobby1-30/+30
2025-04-06implement: get tasks and get all tasksBobby1-0/+46
2025-04-06fix tasks: tasks not starting after server rebootBobby1-30/+63
2025-04-06syncing anime lists via fribb mappingsBobby1-0/+203