Laravel - Send Notifications via Job class - Enqueueing Notifications to redis queue without sending them twice : <p>I want to enqueue notifications to redis queue via a job class.
I ask myself what is the best practice to send notifications via a job and not sending them multiple times. My job is triggered by an artisan command which is triggered every minute to grab and send the latest notifications from database. My fear is that the notification query lasts too long, so the job which grabs the notification hasn'nt finished yet until the next notification sending job is triggered and partly sends the same notifications. Should I put an additional flag in my notifications table to mark notifications as queued or can you solve this anyhow by using redis cache?
Best regards</p>
