remove unnecessary queue to celery when submitting a task w/ burnettk

This commit is contained in:
jasquat 2024-03-06 16:34:49 -05:00
parent f1abed13d6
commit a762efca33
No known key found for this signature in database
1 changed files with 0 additions and 5 deletions

View File

@ -29,9 +29,6 @@ from sqlalchemy.orm.util import AliasedClass
from spiffworkflow_backend.background_processing.celery_tasks.process_instance_task_producer import ( from spiffworkflow_backend.background_processing.celery_tasks.process_instance_task_producer import (
queue_enabled_for_process_model, queue_enabled_for_process_model,
) )
from spiffworkflow_backend.background_processing.celery_tasks.process_instance_task_producer import (
queue_process_instance_if_appropriate,
)
from spiffworkflow_backend.data_migrations.process_instance_migrator import ProcessInstanceMigrator from spiffworkflow_backend.data_migrations.process_instance_migrator import ProcessInstanceMigrator
from spiffworkflow_backend.exceptions.api_error import ApiError from spiffworkflow_backend.exceptions.api_error import ApiError
from spiffworkflow_backend.exceptions.error import HumanTaskAlreadyCompletedError from spiffworkflow_backend.exceptions.error import HumanTaskAlreadyCompletedError
@ -947,8 +944,6 @@ def _task_submit_shared(
if next_human_task_assigned_to_me: if next_human_task_assigned_to_me:
return make_response(jsonify(HumanTaskModel.to_task(next_human_task_assigned_to_me)), 200) return make_response(jsonify(HumanTaskModel.to_task(next_human_task_assigned_to_me)), 200)
queue_process_instance_if_appropriate(process_instance)
# a guest user completed a task, it has a guest_confirmation message to display to them, # a guest user completed a task, it has a guest_confirmation message to display to them,
# and there is nothing else for them to do # and there is nothing else for them to do
spiff_task_extensions = spiff_task.task_spec.extensions spiff_task_extensions = spiff_task.task_spec.extensions