Skip to content

Extend upload sessions to hold more explicit state information - #764

Open
aduffeck wants to merge 2 commits into
opencloud-eu:mainfrom
aduffeck:upload-status
Open

Extend upload sessions to hold more explicit state information#764
aduffeck wants to merge 2 commits into
opencloud-eu:mainfrom
aduffeck:upload-status

Conversation

@aduffeck

Copy link
Copy Markdown
Member

Upload sesssions now hold an explicit state for the uploading->postprocessing->finished/failed lifecycle as well as an status message which gives information about the current step or failure.

metrics.UploadSessionsFinalized.Inc()
}

session.SetStatus(SessionStatusProcessing, "")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be overlooking something, but isn't this racy with the other SetStatus calls that happen in Postprocessing() after the BytesReceived event is sent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants