aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/taskqueue/tasks.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-07 22:14:51 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 04:02:37 +0900
commit6bb6071ec1dce0cce59df0cb1c38168918061041 (patch)
treefeca06471f51ac5a1cdaaed4a0333ee9c0cf38e3 /backend/taskqueue/tasks.go
parent401a28944fc0408811aedadd1c3104e2e2d4d7fe (diff)
downloadiosdc-japan-2024-albatross-6bb6071ec1dce0cce59df0cb1c38168918061041.tar.gz
iosdc-japan-2024-albatross-6bb6071ec1dce0cce59df0cb1c38168918061041.tar.zst
iosdc-japan-2024-albatross-6bb6071ec1dce0cce59df0cb1c38168918061041.zip
refactor(backend): move ownership of channel to send task results
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
+}