My worker script will run arbitrary user code (passed in via request body), and I’d like to only allow the user code to run for a maximum of 50ms CPU time, and 5 seconds total duration. Is this possible? I can’t surface anything via Google, and GPT-4 says its not possible.
If this is not possible, it definitely should be. I’d have thought being able to safely run arbitrary user code would be a big selling point of a platform like Workers.