- Implemented the main view for Supplemental Feeds, displaying clients with Merchant Account IDs and their associated feed files. - Added styling for the feeds page and its components, including headers, empty states, and dropdown menus for syncing actions. - Created backend logic to generate supplemental feeds for clients, including file handling and data sanitization. - Integrated new routes and views for managing feeds, ensuring proper data retrieval and display. - Updated navigation to include the new Supplemental Feeds section. - Added necessary documentation for CRON job management related to feed generation.
1.2 KiB
1.2 KiB
Kolejka Cron (DB)
Cel
- Zadania cron sa zapisywane w bazie (
cron_jobs) i planowane przez harmonogram (cron_schedules). - Aktualnie domyslnie dziala zadanie:
product_links_health_check(co 7 dni).
Tabele
cron_jobs- kolejka zadan z priorytetem, retry i backoff.cron_schedules- definicje cyklicznych zadan.product_link_alerts- alerty dla nieistniejacych powiazan produktu.
Uruchamianie
- Jednorazowo:
php bin/cron.php - Z limitem batcha:
php bin/cron.php --limit=50 - Z panelu (
Ustawienia -> Cron) mozna wlaczyc uruchamianie workera podczas requestow HTTP.
Zalecenie dla systemowego crona
- Uruchamiaj
php /sciezka/do/orderPRO/bin/cron.phpco 1-5 minut. - Harmonogram 7-dniowy jest liczony przez
cron_schedules.next_run_at, wiec sam worker powinien byc uruchamiany regularnie.
Jak dziala product_links_health_check
- Pobiera aktywne integracje
shopproz API key. - Odswieza cache ofert (
channel_offers) przez import API. - Czyści nieaktualne rekordy ofert z cache.
- Weryfikuje aktywne powiazania
product_channel_map. - Dla brakujacych powiazan ustawia alert
missing_remote_link. - Dla przywroconych powiazan zamyka alert.