How to control a heavy process in a command

0

I need to send hundreds or thousands of emails with or without attachments. For this I have thought about using a ContainerAwareCommand that I can launch from the cron and to monitor it using the same console or that I keep certain values in bd in each iteration.

Is there any way to stop or pause a command? Can I have more control or interact?

Is there any better way to do it or monitor it?

    
asked by Apyc 29.05.2018 в 23:53
source

1 answer

0

The answer is relatively simple, you have to use logs, leave a record for example of the mails that have been sent or which have failed, if you use symfony, it is already integrated (depends on the version) monolog that does almost all the I work for you.

All the information on how to do it can be found here: link

Then when you have the logs how to read them is another topic that can be more complex, I imagine that to start you can simply use a tail -f (if you use linux or mac) to see the last file lines and how it is going writing

Ssludos,

    
answered by 21.06.2018 в 17:19