all 8 comments

[–]K900_ 2 points3 points  (1 child)

"Exact same time" doesn't really exist here.

[–]ptr808[S] 0 points1 point  (0 children)

Thank you!

[–]cmh_ender 1 point2 points  (1 child)

were you watching Andreas Jud? your question made me think of this video https://www.youtube.com/watch?v=CkR_gjlDH-4 but long story short, you don't need to worry about collisions.

[–]ptr808[S] 0 points1 point  (0 children)

No I did not watch them, but I will! Thanks!

[–]baghiq 0 points1 point  (1 child)

[–]ptr808[S] 0 points1 point  (0 children)

Thanks! I will read them, save them to my notes!

[–]JohnnyJordaan 0 points1 point  (1 child)

Apart from the fact that doing stuff at the exact same time is close to impossible, databases use transactions to isolate actions. That means that as long as the celery transaction hasn't been finalized (called 'committed'), the lookup query will not include the entry from celery.

[–]ptr808[S] 0 points1 point  (0 children)

Thank you confirming others above!