M
M
masambrero2015-12-09 15:46:46
Perl
masambrero, 2015-12-09 15:46:46

How to trigger event processing by time?

Good afternoon!
There is the following task: the table contains a list of events, each of which must be performed at a specific time (according to the field that specifies the date and time). When this moment comes, you need to run a script that will take the parameters from the table and make several POST requests.
At the moment, this is implemented through cron, when every minute the presence of records in the table for the same minute is checked. If there are several records at the same time, then a fork will be made for each.
However, such an implementation, from the standpoint of my little experience, looks somewhat clumsy. Perhaps there is a more elegant solution to this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2015-12-09
@masambrero

It's a perfectly normal solution.
If you do not want to write your own daemon instead of cron, then the implementation is quite normal.
Well, you can also transfer tasks directly from the table directly to kroner. Maybe even a script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question