Timothy Carambat
103bd9a616
fix(process): support execPath option for forked child processes
...
Allow jobs with `runAs: process` to specify a custom `execPath`,
passed through to `child_process.fork()`. This is needed when Bree
runs inside Electron, where the default `process.execPath` is the
Electron binary whose Chromium PartitionAllocator crashes native
addons that call `posix_memalign` (e.g. onnxruntime-node).
Fully opt-in — jobs without `execPath` behave identically to before.
2026-07-03 10:53:44 -07:00
timothycarambat
33c8e80625
feat: add fork support
2024-07-03 10:44:00 -07:00
Taylor Schley
78b1e097c1
feat: fix types and use tsd
2024-04-30 14:09:22 -05:00
titanism
dba21cc893
fix: fixed tests
2023-11-21 00:18:35 -06:00
titanism
6e5504a469
fix: version bump, attempt to fix ts issues, drop node v12 from tests
2023-11-20 23:46:28 -06:00
titanism
c9dd52f01b
chore: downgrade xo to v0.52 for ci tests on node v12
2023-11-20 23:35:20 -06:00
Mike Valstar
82de2028e3
feat: allow resiliency with accepted extensions
2023-10-09 10:34:10 -04:00
Michael Szwarc
9a279c8a2a
#202 Windows compatibility
2022-11-26 23:07:34 +01:00
titanism
6c3ad7c950
feat: omit job env in workerData ( fixes #171 )
2022-06-27 01:02:55 -05:00
titanism
0251322ee4
feat: added ESM support via dynamic import ( closes #180 ), breaking changes, refactoring
2022-06-10 04:05:50 -05:00
niftylettuce
3fa1a71085
Revert "refactor: default root is now based on __dirname"
...
This reverts commit b7a75a56f5 .
2022-03-11 16:48:28 -06:00
Taylor Schley
e0ad35e4bd
test: stability improvement
2022-03-09 16:04:33 -06:00
Taylor Schley
77b9dec72a
feat: add job past event when job is attempted to be started past it's scheduled date
2022-03-09 15:41:44 -06:00
Taylor Schley
bdc915bb96
fix: modify log returns
2022-03-09 15:30:38 -06:00
Taylor Schley
b7a75a56f5
refactor: default root is now based on __dirname
...
closes #145
2022-02-22 16:13:24 -06:00
Taylor Schley
0d332a5544
fix: throw error when job is already started
...
closes #148
2022-02-22 16:08:49 -06:00
Taylor Schley
6094251275
feat: add warning if data is in the past on start
...
closes #156
2022-02-22 16:02:02 -06:00
Taylor Schley
092ce194ec
refactor: switch to using Maps
2022-02-21 17:44:20 -06:00
Taylor Schley
139a949824
feat: add removeCompleted to config
...
closes #106
2022-02-21 16:31:26 -06:00
Taylor Schley
30fd2c0934
feat: add config to disable or silence root require check
...
closes #158
2022-02-21 16:30:41 -06:00
Taylor Schley
0587ca12e6
fix: add name to worker deleted emit
2022-01-04 09:44:12 -06:00
Taylor Schley
79ce6a87f6
fix: emit "worker deleted" when "done" message sent
...
closes #151
2021-12-29 12:38:24 -06:00
niftylettuce
102027ca1d
feat: added option to disable logging ( closes #147 )
2021-12-20 16:43:52 -05:00
niftylettuce
968336753c
chore: added test job cronValidate option override for #135
2021-11-09 16:28:11 -05:00
niftylettuce
7c9e1546c0
fix: fixed tests and dropped bthreads
2021-11-09 15:55:07 -05:00
Shail Sheth
a219d395ef
#135 Bug Issue Minor Fix
...
#135 Bug Issue Minor Fix
2021-11-09 12:43:51 +00:00
Taylor Schley
153d92894e
feat: remove bthreads
2021-11-05 14:18:51 -06:00
Taylor Schley
9106113bdc
feat: add createWorker and acceptedExtensions
2021-11-04 18:06:09 -06:00
KaKa
fb68629cd4
refactor: bind removeSafeTimer
2021-10-26 15:35:33 -06:00
KaKa
1ff2a5eeab
refactor: move function inside class
2021-10-26 15:35:33 -06:00
KaKa
0ea22af127
fix: remove closeWorkerAfterMs after exit or done
2021-10-26 15:35:33 -06:00
Taylor Schley
c3d9f9792a
chore: bump @breejs/later
2021-10-26 15:22:27 -06:00
Kyriakos Nicola
a6295197a2
fix: get offset using utc time
2021-08-27 23:37:01 -04:00
Kyriakos Nicola
3318d095fa
feat: tz support for node v10 and v12
2021-08-27 20:45:55 -04:00
Kyriakos Nicola
a7e18ac83b
chore: move localOffsetMillis up a notch for readability
2021-08-25 14:04:45 -04:00
Kyriakos Nicola
c65aef4c7b
fix: don't override job's timezone
2021-08-25 11:29:00 -04:00
Kyriakos Nicola
8a56888675
fix: timezone conversions
2021-08-24 16:04:26 -04:00
Kyriakos Nicola
ff8b7a39f6
fix: tz error msg in job-validator.js
2021-08-22 20:39:14 -04:00
Kyriakos Nicola
a4d3b7c989
feat: add timezone support
2021-08-22 16:20:04 -04:00
Taylor Schley
df8e8543d8
feat: return array of added jobs
2021-08-17 15:20:32 -05:00
Taylor Schley
f81cad2745
feat: add init function to constructor
2021-08-06 09:35:31 -05:00
Taylor Schley
8e8daaf0bc
feat: add plugins
2021-07-28 10:20:31 -05:00
Ivan Arcuschin
e6a8370a26
fix: silent error for string literals
2021-07-10 13:12:12 -05:00
Naz
2c0c7f63b4
feat: added custom workerMessageHandler option to config
2021-02-22 18:26:28 +13:00
Naz
9c678cabf0
fix: fixed typo emmited -> emitted
2021-02-22 14:09:45 +13:00
Naz
1fbca4c78d
fix: removed stray date logging
2021-02-22 12:45:24 +13:00
Naz
d30dd73f1b
fix: made sure the jobs are stopped when removed
2021-02-13 18:30:02 +13:00
niftylettuce
9ab53c925a
fix: closeWorkerAfterMs timer now starts when job worker is "online"
2021-02-08 11:42:01 -06:00
Taylor Schley
255f60ac73
refactor: refactor tests
2021-02-06 11:52:30 -06:00
Taylor Schley
701e32b6e5
Merge branch 'master' of github.com:breejs/bree
2021-02-06 11:19:22 -06:00