How can I make a job that times out say "Successful" instead of "Failed"?

I have a command that I have to run with async flags.

If I run without async it fails due to SSH timeout
if I put a timeout value in the playbook it fails.
If I have no timeout value it RUNS FOREVER lol!

I have to make it timeout after an hour on the job template in Ansible Automation Platform,
The playbook works perfectly however it says “Failed” Job terminated due to timeout

I want it to say Successful, since it worked - any ideas on how to do this?

Failure is normally determined by the action itself, the core engine does override that in case of timeout, but failed_when lets you define the condition.