feat: worker: Ensure tempdir exists (#10433)
This commit is contained in:
parent
76776e5cc1
commit
3ff8a09183
@ -295,6 +295,13 @@ var runCmd = &cli.Command{
|
||||
}
|
||||
}
|
||||
|
||||
// ensure tmpdir exists
|
||||
td := os.TempDir()
|
||||
if err := os.MkdirAll(td, 0755); err != nil {
|
||||
return xerrors.Errorf("ensuring temp dir %s exists: %w", td, err)
|
||||
}
|
||||
|
||||
// Check file descriptor limit
|
||||
limit, _, err := ulimit.GetLimit()
|
||||
switch {
|
||||
case err == ulimit.ErrUnsupported:
|
||||
|
Loading…
Reference in New Issue
Block a user