From UI user will give us some specific time (with timezone )for updating the exe version on the devices which we are storing in postgresql db as demandedInstallationTime.
-------------------------------------------------------------
| Id | DeviceName | demanded Installation Time | Other data |
-------------------------------------------------------------
Instead of polling in Java for every minute to check the table if there is any entry with 'demandedInstallationTime' and then invoke installation, I am thinking from postgresql tools. like pg_notify() but that works when there is Insert/Update/Delete of row of the table.
Cron jobs will also need to be scheduled to run either minutely or hourly, etc. continuously 24/7 which is not feasible in our case.
I wanted some thread to notify/trigger some script automatically when 'demandedInstallationTime' column equals 'current time'. How can we achieve this? Any suggestions?