chore: update for deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
张泊明518370910136 2024-06-30 07:39:28 -04:00
parent b608a22cfd
commit 97f89d210b
GPG Key ID: D47306D7062CDA9D
2 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ $ go build -o ./tmp/go-judge ./cmd/go-judge
5. Run `go-judge`.
```bash
$ # make sure you are in go-judge directory
$ ./tmp/go-judge -enable-grpc -enable-debug -enable-metrics
$ ./tmp/go-judge -http-addr 0.0.0.0:5050 -grpc-addr 0.0.0.0:5051 -monitor-addr 0.0.0.0:5052 -enable-grpc -enable-debug -enable-metrics
```
6. Pull submodules. It might be slow, so only run it when necessary.

View File

@ -18,6 +18,7 @@ type Sandbox struct {
func (e *Sandbox) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error) {
var err error
if e.execClient == nil {
slog.Debug("create exec client", "server", e.execServer)
e.execClient, err = createExecClient(e.execServer, e.token)
if err != nil {
return nil, err