Issues with Elixir LiveView Polling Mechanism in Docker on Ubuntu Server

42
clicks
Issues with Elixir LiveView Polling Mechanism in Docker on Ubuntu Server
The author, ekevu456, narrates a problem with an Elixir application that works perfectly when running in a Docker container on localhost but encounters issues in a production environment on a Ubuntu server. They utilize Elixir's `Process.send_after/3` function for a polling mechanism within LiveView, which periodically checks Firestore for updates and communicates results through socket changes. The process is supposed to repeat at intervals, but on the Ubuntu server, it stops after the first execution without any errors. The community response from toodimes speculates that the cloud provider might be shutting down the process due to perceived inactivity. ekevu456 confirmed that the app runs, but the specific process does not, indicating that the issue lies within the execution of the polling function rather than the app's availability on the server.

© HashMerge 2024