Assistant API Thread Expires

Anyone know what this error is?

Runs in status “expired” do not accept tool outputs.', ‘type’: ‘invalid_request_error’,

I understand my thread is expiring but the task takes time to execute. How do I keep it so the thread doesn’t expire. Doesn’t seem like I can change the expire_at paramater.