Članci s tagom #queue
-
PHP cron scheduler: self-hosted, zero dependencies, per-minute resolution
Shinobi Apps framework Scheduler: queue_scheduled_tasks table, registerIfNeeded (file cache → DB upsert, hash of jobClass+expression+jobData), ONCE marker for one-time tasks, runDue optimistic atomic claim (UPDATE WHERE old next_run_at → affected_rows=1 wins, prevents duplicate dispatch), INSERT ON DUPLICATE KEY UPDATE with is_active omitted (preserves user toggle). Scheduler::ONCE for delayed post-deploy tasks. Expression: cron 5-field or dailyAt HH:MM.
-
PHP job queue on a shared host: no Redis, no RabbitMQ, just MySQL and cron
Shinobi Apps framework queue: DatabaseDriver (MySQL-backed, no Redis). QueueManager priority queue list (default, emails, alerts, webhooks, ai-analysis, maintenance, notifications) + auto-discovery of unknown queues from storage (new addon queue Just Works). processMany round-robin, processManyUntil(deadline) for time-bounded critical-path drain. Exponential backoff (60s × 2^attempts). Dynamic class whitelist for unserialize (PHP Object Injection defence). Queue lifecycle events via EventDispatcher.