14 lines
306 B
Python
14 lines
306 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from config.celery import app
|
||
|
|
|
||
|
|
from .growth_simulation import run_growth_simulation
|
||
|
|
|
||
|
|
|
||
|
|
@app.task(bind=True)
|
||
|
|
def run_growth_simulation_task(self, payload: dict) -> dict:
|
||
|
|
return run_growth_simulation(
|
||
|
|
payload,
|
||
|
|
progress_callback=self.update_state,
|
||
|
|
)
|