openHPI / poseidon

Scalable task execution orchestrator for CodeOcean
MIT License
8 stars 1 forks source link

Add option to configure Systemd Watchdog #644

Closed MrSerth closed 3 weeks ago

MrSerth commented 1 month ago

Not all operating systems use systemd, and thus don't necessarily support the systemd watchdog. One example would be macOS 💻. However, with the current setup, an error is issues that the systemd watchdog is unsupported on each start of Poseidon.

When error reporting to Sentry is enabled, consequentially, each start of Poseidon on macOS reports a new event (which I have to delete manually). It would be great if we could change the current behavior.

I see the following potential approaches:

  1. Add a config option to disable the systemd watchdog
  2. Lower the level of the "Systemd Watchdog not supported" error (maybe similar to "Systemd Readiness Notification not supported")
  3. Couple systemd readiness notifications and systemd Watchdog: Return from notifySystemd, when systemd readiness notifications are not supported
  4. (Disable the watchdog for non-Linux systems)
mpass99 commented 3 weeks ago

Thanks for already proposing approaches. In #689 I've implemented approach 2.