Adding a delay between two actions in a Story

Hello, I have two cutsom actions running back to back in a story. I want to run the first custom action, then add a 5 second delay before the second custom action runs. I have tried to put time.sleep(5) in the second custom action, but for some reason the first action doesn’t get triggered until the time.sleep(5) has run. Any help would be great

Hi @latifyahia. Can you please share the story and your action code?