Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize the update of the workflow state of processes #6228

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BartChris
Copy link
Collaborator

@BartChris BartChris commented Sep 16, 2024

Adresses #6177

As discussed in GitHub discussion #6177, there is potential to optimize the update of the workflow state of processes. Currently, whenever a task within a child process is closed, we check whether all other child processes under the same parent are also closed. If they are, the parent process can be marked as complete as well.

However, this check seems necessary only when the task being closed is the final task in the process. If the process is not yet complete, there is no need to verify the status of other sibling processes. Additionally, if checking whether the other processes are completed is required, we can delegate this to the database to improve performance.

@BartChris BartChris force-pushed the speed_up_updating_process_states branch from da355d9 to 809020b Compare September 16, 2024 14:08
@BartChris BartChris changed the title Optimize closing of processes Optimize the update of the workflow state of processes Sep 16, 2024
@BartChris BartChris force-pushed the speed_up_updating_process_states branch from 809020b to 7cb2099 Compare September 16, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant