diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-07 22:14:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-08 04:02:37 +0900 |
| commit | 6bb6071ec1dce0cce59df0cb1c38168918061041 (patch) | |
| tree | feca06471f51ac5a1cdaaed4a0333ee9c0cf38e3 /backend/taskqueue/tasks.go | |
| parent | 401a28944fc0408811aedadd1c3104e2e2d4d7fe (diff) | |
| download | iosdc-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.go | 7 |
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 +} |
