I have a strange situation. I have a cronjob running queue tasks one after the other. I have a delay of 1s between the tasks.
After a task is run, it sets processed=1, and continues with the next one, that has processed=0.
I have some situations where a task is executed twice. This means that processed=1 was set, but when we read again for processed=0, it finds it.
I use PHP, and ->execute(). Is it possible changes in the database not to be reflected immediately for some reasons?
processed
flag) - use one "hyper-task" which executes separate tasks one-by-one.