diff --git a/worker.php b/worker.php index fb6951f..c71eec6 100644 --- a/worker.php +++ b/worker.php @@ -8,5 +8,8 @@ if (!file_exists(DOWNLOADEDDIR.'/.mydlok')) { exit(1); } -Download::launchNextDownload(); -sleep(30); \ No newline at end of file +# TODO: fetch that from env +for ($i = 0; $i < 20; $i++) { + Download::launchNextDownload(); + sleep(30); +}