filed
Job queue using FUSE
git clone git://mccd.space/filed
| Log | Files | Refs | README | LICENSE |
commit c99997e86d89ea49ccdc5d65d2ef9348676c5f21 parent 92839b0c749970e6cba9e27566bfea757a6927e3 Author: Marc Coquand <marc@coquand.email> Date: Tue, 16 Dec 2025 17:28:33 +0100 EEXIST Diffstat:
| M | pendingdir.go | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pendingdir.go b/pendingdir.go
@@ -176,8 +176,9 @@ func (f *JobCreationFile) Release(ctx context.Context, req *fuse.ReleaseRequest)
_, err := f.store.CreateJob(f.id, command)
if err != nil {
+ // XXX Should check specifically for file exist error
slog.Error("Failed to create job. Is the job name unique? I.E. no pending/completed/failed jobs with same name.", "error", err)
- return syscall.EIO
+ return syscall.EEXIST
}
return nil
}