Deployment doesn't succeed or fail with certain code

Problem description:
If I use a certain Python code and try to deploy it, the repl will just keep trying in vain to deploy it but never succeed or fail. If I refresh the page it finally fails. Then, the failed repl still takes up account resources.

Expected behavior:
Repl either deploys or fails to deploy, not gets stuck.

Actual behavior:

It will do this until I refresh/close the page. It never stops. If I refresh or close the page, it will show the normal error message:

Repl which failed to deploy still using resources:

Steps to reproduce:
Create a Python repl with the following code:

while True:
    exec(input("> "))
  except: pass

Then attempt to deploy it to Autoscale.
I tried using while True: pass and while True: input but only this code does this.

Bug appears at this link:

Browser: Firefox
OS: Debian 12
Device (Android, iOS, NA leave blank): HP EliteDesk G2 SFF
Desktop app version (Avatar menu->“Version”) or NA: N/A
Plan (Free, Replit Core): Replit Core

I didn’t expect it to actually deploy but I didn’t expect it to not fail either.

1 Like

how did you find this?! this is some real obscure stuff wow!

1 Like

I can’t remember what I was doing (first created the repl sometime last month I think). IIRC I was trying to see if normal Python code would deploy or not so I supplied some code I wrote that served no constructive purpose and this happened.

1 Like

Thanks @CoderElijah. I can reproduce and I’ll get it reported to the team. This is a funny one and hopefully an edge case we can address.