Skip to content

Commit

Permalink
fix zone updating with concurrent sheet replace (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Nov 29, 2023
1 parent 63d8fad commit 5756f70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Fixed
- Opening redundant iRODS connection in server version retrieval (#1831)
- **Landingzones**
- No wait for async ``CurrentUserRetrieveAPIView`` call result (#1732, #1807)
- ``BaseLandingZoneStatusTask.set_status()`` failure with concurrent sheet replacing (#1839)
- **Taskflowbackend**
- ``project_create`` timeline event user reference (bihealth/sodar_core#1301, #1819)

Expand Down
3 changes: 2 additions & 1 deletion landingzones/tasks_taskflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,12 @@ def set_status(cls, zone, flow_name, status, status_info, extra_data=None):
status_info[: STATUS_INFO_LEN - len(STATUS_TRUNCATE_MSG)]
+ STATUS_TRUNCATE_MSG
)
# Refresh in case sheets have been replaced (see issue #1839)
zone.refresh_from_db()
zone.set_status(
status=status,
status_info=status_info if status_info else None,
)
zone.refresh_from_db()

if not extra_data:
extra_data = {}
Expand Down

0 comments on commit 5756f70

Please sign in to comment.