@peterw71 while @r00ta is making the patch and it gets merged in, I used to the following to try the fix.
sudo cp /snap/maas/current/lib/python3.12/site-packages/maastemporalworker/workflow/deploy.py .
sudo vi deploy.py
# Change
# DEFAULT_DEPLOY_ACTIVITY_TIMEOUT = timedelta(seconds=30) to DEFAULT_DEPLOY_ACTIVITY_TIMEOUT = timedelta(seconds=300)
# Save
sudo mount -o bind,ro deploy.py /snap/maas/current/lib/python3.12/site-packages/maastemporalworker/workflow/deploy.py
sudo snap restart maas
You should be able to deploy now.
PS: This change will revert on reboot of host running maas.