Blog Info | Instawork Engineering |
---|---|
Blog website | Link |
May 23, 2022 » Instawork Engineering » [Archived Version]
At Instawork, we use Celery to queue and process background tasks from our Django code. Typically, we want the tasks to be processed as quickly as possible. But sometimes we want a task to be processed at a specific point in the future. For example, we may want to send a reminder notification to our users 1 hour before the start of their shift. Celery offers a convenient way to do this by providing an eta or countdown value when queueing the task from Django. This seems like a perfect solution …
Read MoreAug. 20, 2021 » Instawork Engineering » [Archived Version]
There can be some strong opinions on the built-in signals available in Django and whether or not they should be used, but we’ll skip that here and instead focus on some basics of how best to use them and avoid some common pitfalls.For the uninitiated, signals are synchronously (this will be important later) firing events that trigger handlers. There are a few common built in ones, we’ll be discussing post_save and pre_save signals that are triggered whenever a Django model is saved.Infinite Loo…
Read MoreFeb. 19, 2019 » Instawork Engineering » [Archived Version]
At Instawork we have multiple different environments (test, development, staging, production) and we have quite a few different Django…Continue reading on Instawork Engineering »
Read More