@flaviojuvenal this is awesome, thanks for putting this together. ๐ช ๐
how about adding `result_expires` to prevent a build up? though I guess that one is trickier because of its beat dependence ๐ค
Run Python Loops On All CPU Cores!
Discover how. Download your free copy of my book "Parallel Loops in Python":
https://t.co/U9ldCIEPP9
+ pdf and epub formats
+ 6 code templates
+ bonus 7-day email course
If you use Amazon #SQS as your #Celery message broker, be careful:
SQS now supports a JSON-based wire protocol
https://t.co/D6avVgb5DB
๐ it's a breaking change in Celery
๐ pin botocore to 1.31.80
https://t.co/ahlpeq8VVN
Thx @LastWeekinAWS for the lead ๐
@manuelinfosec@testdrivenio The first get might throw an exception which leads to the create.
In the split second between get and create something else could do exactly the same.
The create will fail because of an integrity error. Which get_or_create catches. And returns another get.
3 calls.
@manuelinfosec@testdrivenio My understanding is that an atomic operation is a single, indivisible operation.
Whereas a database transaction is a set of multiple operations that are executed together as a single unit. If one unit fails, the transaction is rolled back.
@testdrivenio I've just managed to overcome my laziness. ๐
"get_or_create" is non-atomic.
It tries a SELECT, if that returns nothing (a DoestNotExist error in the Django ORM), it runs the INSERT.
https://t.co/GgVndJDKqF
@testdrivenio What I wonder (and apparently I'm too lazy to check the source code... ๐) is "get_or_create()" an atomic operation? I'm thinking something like INSERT INTO ...
ON CONFLICT ... RETURNING in pg?
Anyone using SQS as a Celery message broker?
I'm writing a blog post about it and would love to hear some stories from the trenches.
please share, thanks
#Python#celery#AWS#MicrosoftAzure
#Sidekiq has some nice options for #testing:
๐ A test fake that pushes all jobs into aย jobsย array
๐ An inline mode that runs the job immediately instead of enqueuing it
๐ The test harness can be disabled. Jobs are pushed to redis.
What about testing #Celery workers? ๐ค
๐ข Do you want to help guide the future efforts in the #Django framework? ๐ท
Take a few minutes to fill out the official Django Developers Survey:
https://t.co/KjYjhrH2ni
๐ The results serve as a major source of knowledge about the current state of the community ๐ #Python
๐กCelery Load Testing
๐ https://t.co/oY1o2EHRYO is a powerful open source load testing tool written in Python.
๐ It is a superb tool to test the resilience of your system
๐ Load test your Celery cluster with https://t.co/l1owjJfU9j: https://t.co/hrmRRWJPR3
#celery#Python