tasks
« Previous section Next section »
UCloud Developer Guide / Core / Communication / Tasks
Tasks
Tasks give services a way to communicate progress to end-users.
Rationale
A task in UCloud displays the progress of any long-running process. Both services and providers use this functionality. Each task is uniquely identified by a key. Each task belongs to a specific end-user. Services/providers communicate progress updates regularly. If the end-user is online when an update occurs, then the end-user is notified.
Providers use this functionality through one of the Control interfaces. They do not invoke the interface directly.
Table of Contents
Example: Counting to 3 (Produced by the service)
Frequency of use | Common |
---|---|
Actors |
|
Example: Counting to 3 (Received by end-user)
Frequency of use | Common |
---|---|
Actors |
|
Remote Procedure Calls
list
list
Request | Response | Error |
---|---|---|
listen
listen
Request | Response | Error |
---|---|---|
view
view
Request | Response | Error |
---|---|---|
create
create
Request | Response | Error |
---|---|---|
markAsComplete
markAsComplete
Request | Response | Error |
---|---|---|
postStatus
postStatus
Request | Response | Error |
---|---|---|
Data Models
Progress
Progress
Speed
Speed
Task
Task
TaskUpdate
TaskUpdate
CreateRequest
CreateRequest
ListRequest
ListRequest
PostStatusRequest
PostStatusRequest
Last updated