How to set timeout for terraform apply?

Hello
Many a times I get '[TRACE] dag/walk: vertex '. I would like to set timeout instead of going on forever.

Thanks