<p>I have been recently challenged with an architectural problem. Basically, I developed a Node.js application that fetches three zip files from Census.gov (13 MB, 1.2 MB and 6.7 GB) which takes about 15 to 20 minutes. After the files are downloaded the application unzips these files and extracts needed data to an AWS RDS Database. The issue for me is that this application needs to run only one time each year. What would be the best solution for this kind of task? Also, the zip files are deleted after the processing is done.</p>

Sam
<p>I would use a cron job.  You can use this website (<a href="https://crontab.guru/every-year" rel="nofollow noreferrer">https://crontab.guru/every-year</a>) to determine the correct settings for the crontab.</p>
<pre><code>0 0 1 12 1
</code></pre>
<p>This setting will run “At 00:00 on day-of-month 1 and on Monday in December.”</p>
<p>To run the nodeJS program you simply put node yourcode.js aftewards.  So it would look like the code below.  Where node is you may need to put the path to the node program, and where yourprogram.js is you simply need to add the path there as well.</p>
<pre><code>0 0 1 12 1 node yourprogram.js
</code></pre>
