@rip-lang/swarm 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/worker.mjs +0 -1
- package/package.json +1 -1
- package/swarm.rip +0 -9
package/lib/worker.mjs
CHANGED
package/package.json
CHANGED
package/swarm.rip
CHANGED
|
@@ -313,15 +313,6 @@ export swarm = (opts = {}) ->
|
|
|
313
313
|
|
|
314
314
|
w.on 'exit', (code) ->
|
|
315
315
|
writeFileSync('.swarm/errors.log', "worker #{slot} exited with code #{code}, inflight: #{inflight[slot]}\n", { flag: 'a' }) if existsSync(_dir)
|
|
316
|
-
# startup failure — worker never became ready
|
|
317
|
-
if code isnt 0 and not info[slot]? and not fatal
|
|
318
|
-
fatal = true
|
|
319
|
-
cursor(true) unless quiet
|
|
320
|
-
write go(workers + 5, 1) unless quiet
|
|
321
|
-
console.error "\nswarm: worker #{slot} failed to start (exit code #{code})"
|
|
322
|
-
console.error "hint: run 'bun add @rip-lang/all' in your project directory"
|
|
323
|
-
console.error " check .swarm/errors.log for details"
|
|
324
|
-
exit 1
|
|
325
316
|
# if worker crashed mid-task, count the in-flight task as died
|
|
326
317
|
if inflight[slot]
|
|
327
318
|
move(inflight[slot], _died)
|