Q
Q
Qwyu_4iLofK2022-02-20 00:01:23
symfony
Qwyu_4iLofK, 2022-02-20 00:01:23

What tools to do synchronous execution of symfony commands on a schedule?

Good day everyone!

I have a table with two fields "Command", "execution time".
"Execution time" is set in this format */10 * * * * (i.e. every 10 minutes, like in cron

) the main command, the rest must be launched. (the rest can have an execution time every five minutes, every hour, but they must be run strictly after the main command). In other words, the main command has been executed, you need to check whether the execution of other commands has come to execution?

The question is, what tools can be used to implement this? is it possible with rabbitMQ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2022-02-20
@Qwyu_4iLofK

No, cron simply "pulls" the specified command when its time has come. I think it's better to create a separate list command that will call commands at the code level in turn and provide this sequence with intermediate checks. To solve this problem using a rabbit, more checks are needed, more code, it is probably not needed here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question