Djando Celery: Celery task does not create record in DB
I want to create database records with celery task. But for some reason object.save() method is not working with task.apply_async() (Apply tasks asynchronousy). Same record (Ticker) is saved in the database with a celery task while running it locally: get_all_tickers.apply() But is not saved with asynchronous mode: get_all_tickers.apply_async() In both cases INSERT statement is visible in the server log. models.py class Ticker(TimeStampedModel): ask = models.DecimalField(max_digits=18, decimal_places=8) bid = models.DecimalField(max_digits=18, decimal_places=8) pair = models.ForeignKey(Pair)