1) Add Celery shared_task decorator to `update_stock` method for asynchronous execution. Fixes: 1) Replace direct `update_stock()` calls with `update_stock.delay()` to enable task queuing. Extra: 1) Add missing import for `shared_task` in `core/vendors/__init__.py`. |
||
|---|---|---|
| .. | ||
| __init__.py | ||