Girish Ramakrishnan
8bc3b832e7
detect oom in tasks correctly
2022-11-02 22:39:25 +01:00
Girish Ramakrishnan
80a3ca0f46
remove 16.04 related task logic
2022-11-02 21:22:42 +01:00
Girish Ramakrishnan
0f0a98f7ac
Add TimeoutStopSec=10s for systemctl kill to work faster
2022-11-02 18:46:20 +01:00
Girish Ramakrishnan
88a5526e9b
starttask: set NODE_OPTIONS instead of env -S
2021-05-14 09:36:00 -07:00
Johannes Zellner
5e48b69d3b
Revert "taskworker: Use --unhandled-rejections=strict"
...
Breaks the task argument count
This reverts commit b7643ae3b3 .
2021-05-14 11:13:52 +02:00
Johannes Zellner
a43e804ee2
Revert "taskworker: put the arg in shebang line"
...
Not supported on ubuntu 18
This reverts commit e6edc4e999 .
2021-05-14 10:51:37 +02:00
Girish Ramakrishnan
e6edc4e999
taskworker: put the arg in shebang line
...
otherwise, it gets passed as an arg to the script and is visible in process.argv!
2021-05-13 22:49:15 -07:00
Girish Ramakrishnan
b7643ae3b3
taskworker: Use --unhandled-rejections=strict
...
this way, those tasks crash and do not hang on bad code
2021-05-13 22:32:12 -07:00
Girish Ramakrishnan
5adfa722d4
Add some debug information
2020-09-01 12:35:31 -07:00
Girish Ramakrishnan
cf9439fb3b
systemd 237 ignores --nice value in systemd-run
2020-08-26 17:30:47 -07:00
Girish Ramakrishnan
7039108438
pass memory limit as argument to starttask.sh
2020-08-10 21:53:07 -07:00
Girish Ramakrishnan
e85f0a4f52
Rename to box-task
...
this way we can do systemctl stop box*
2020-08-09 11:14:11 -07:00
Girish Ramakrishnan
da72597dd3
Fix start/stop task scripts for ubuntu 16
2020-08-08 11:10:02 -07:00
Girish Ramakrishnan
f8e22a0730
Fix tests
2020-08-07 00:21:15 -07:00
Girish Ramakrishnan
114b45882a
Set memory limit to 400M for tasks
2020-08-07 00:21:15 -07:00
Girish Ramakrishnan
b1b6f70118
Kill all tasks on shutdown and startup
...
BindsTo will kill all the tasks when systemctl stop box is executed.
But when restarted, it keeps the tasks running. Because of this behavior,
we kill the tasks on startup and stop of the box code.
2020-08-06 23:47:40 -07:00
Girish Ramakrishnan
ac63d00c93
run tasks as separate cgroup via systemd
...
this allows us to adjust the nice value and memory settings per task
part of #691
2020-08-06 16:43:14 -07:00