Currently, when requesting progress for the new bulk import, we visit all tasks in the chain and calculate the progress for completed tasks. For bigger imports such as r4.core there is a lot of tasks and at some point requesting the progress is running too long and timing out.
We need to persist partial progress for the groups in the same way as we persist final results by introducing a final task in a group that calculates the results for the group and stores them as a celery result.
The partial results need to be taken into account when calculating total progress.
Currently, when requesting progress for the new bulk import, we visit all tasks in the chain and calculate the progress for completed tasks. For bigger imports such as r4.core there is a lot of tasks and at some point requesting the progress is running too long and timing out.
We need to persist partial progress for the groups in the same way as we persist final results by introducing a final task in a group that calculates the results for the group and stores them as a celery result.
The partial results need to be taken into account when calculating total progress.