K
K
Konstantin2020-12-26 15:00:32
Amazon Web Services
Konstantin, 2020-12-26 15:00:32

How to start a process (script) by time?

There is a database with date stamps. How to run the script on these dates?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mayton2019, 2020-12-26
@Junart1

See the Creating a CloudWatch Events Rule That Triggers on a Schedule
documentation https://docs.aws.amazon.com/AmazonCloudWatch/lates...

I
Ivan Shumov, 2020-12-26
@inoise

Write a separate script that runs with a fixed time interval, which will select data from the database for the last segment and execute them according to some logic

R
rPman, 2020-12-26
@rPman

Sawing your service
If there is a relatively large time interval between dates, then try to write an application that will calculate what task will be next and configure https://docs.aws.amazon.com/AmazonECS/latest/devel... then launch the action and dump the car.
If the time interval is small, and it makes no sense to put the car to sleep, then you will get by with a regular cron and the same script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question