[Fix] Fix Prediction Spinner, ensure proper pathway status is set

Fixes Spinner and status message display on pathway page

Reviewed-on: enviPath/enviPy#291
Co-authored-by: Tobias O <tobias.olenyi@envipath.com>
Co-committed-by: Tobias O <tobias.olenyi@envipath.com>
This commit is contained in:
2026-01-15 23:09:12 +13:00
committed by jebus
parent 1c2f70b3b9
commit 5f5ae76182
8 changed files with 105 additions and 32 deletions

View File

@ -1451,6 +1451,7 @@ def create_pathway(
setting = SettingManager.get_setting_by_url(request.user, pw.selectedSetting)
new_pw.setting = setting
new_pw.kv.update({"status": "running"})
new_pw.save()
from .tasks import dispatch, predict