Problem: Jobs and microservices appear out of order due to MCPClient forking model #1718
Labels
Request: discussion
The path towards resolving the issue is unclear and opinion is sought from other community members.
triage-release-1.18
Type: cleanup
Categorizes issue as related to cleaning up code, process, or technical debt.
Expected behaviour
Items appear in sequential order.
Current behaviour
Items appear out of order. Sometimes, the currentstep=1 appears below a step that has already been completed.
e.g.
Steps to reproduce
Cause
Since the addition of the MCPClient forking model, an unintended consequence has been that items are no longer displayed in sequential order. We believed that this was caused by the following function:
https://github.com/artefactual/archivematica/blob/bade7adeb0ffb4422b6fb289fe13555d0051fca3/src/MCPClient/lib/client/job.py#L62-L69
This function had the unintended consequence that jobs that just finished would get a start_time later than the currentstep=1 job given that the latter would have a timestamp given at object creation and the former would have an updated timestamp when processed.
Disabling this function only solved the issue of the currentstep=1 job appearing below completed steps.
Your environment (version of Archivematica, operating system, other relevant details)
Archivematica: 1.16.0
OS: Ubuntu 22.04
For Artefactual use:
Before you close this issue, you must check off the following:
The text was updated successfully, but these errors were encountered: