The operation has timed out

I have an workflow who is operating nearly 50.000 items but the workflow is running “out of time”. Is there a parameter to expand the timeout?