0

When user click Build button Python script needs to run.I execute this by using process but so many processes created when so many clicked the Build button, server hang.

1 Answer 1

1

Trying my best to read between your (few) lines...

You could disable the button until the process finishes, so your users can't press it again until the script has completed.

Or, if you want to run the process synchronously instead, you might want to look into Process.WaitForExit().

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.