forked from enviPath/enviPy
[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:
@ -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
|
||||
|
||||
@ -1908,6 +1908,7 @@ def package_pathways(request, package_uuid):
|
||||
limit = 1
|
||||
|
||||
pw.setting = prediction_setting
|
||||
pw.kv.update({"status": "running"})
|
||||
pw.save()
|
||||
|
||||
from .tasks import dispatch, predict
|
||||
@ -2059,6 +2060,9 @@ def package_pathway(request, package_uuid, pathway_uuid):
|
||||
if node_url:
|
||||
n = current_pathway.get_node(node_url)
|
||||
|
||||
current_pathway.kv.update({"status": "running"})
|
||||
current_pathway.save()
|
||||
|
||||
from .tasks import dispatch, predict
|
||||
|
||||
dispatch(
|
||||
|
||||
Reference in New Issue
Block a user