aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/taskqueue/tasks.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/taskqueue/tasks.go')
-rw-r--r--backend/taskqueue/tasks.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/taskqueue/tasks.go b/backend/taskqueue/tasks.go
index cd67948..db05553 100644
--- a/backend/taskqueue/tasks.go
+++ b/backend/taskqueue/tasks.go
@@ -27,3 +27,10 @@ func NewExecTask(gameID, userID int, code string) (*asynq.Task, error) {
}
return asynq.NewTask(TaskTypeExec, payload), nil
}
+
+type TaskExecResult struct {
+ Task *TaskExecPlayload
+ Result string
+ Stdout string
+ Stderr string
+}