2 or more sequential actions in scheduled task!

I need to configure daily auto-sending of letters when the status of the project has changed. To do this, I have created a task that sends emails on a daily basis according to the conditions. After 5 minutes, the second task starts, which should change the flag of the sent letters. But this is inefficient 1. In these 5 minutes, the status of another project may change. 2. The task of send email often starts with a very long delay!

Is it possible to perform 2 or more actions in a single task sequentially?