You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a function in an actionFunction that sometimes runs into an infinite loop, causing server crashes due to its use of a third-party library.
I need a way to call this function and terminate it if it runs for longer than a specified time (X seconds). My current approach involves using a Node.js child process wrapped in a promise.
I'm looking for guidance on how to implement this solution within a Remix app. I'm facing difficulties integrating it smoothly with the Remix framework.
Alternatively, if you have any other suggestions for effectively stopping a stuck function and preventing server crashes, I'd appreciate your input.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a function in an
actionFunction
that sometimes runs into an infinite loop, causing server crashes due to its use of a third-party library.I need a way to call this function and terminate it if it runs for longer than a specified time (X seconds). My current approach involves using a Node.js child process wrapped in a promise.
I'm looking for guidance on how to implement this solution within a Remix app. I'm facing difficulties integrating it smoothly with the Remix framework.
Alternatively, if you have any other suggestions for effectively stopping a stuck function and preventing server crashes, I'd appreciate your input.
Beta Was this translation helpful? Give feedback.
All reactions