package com.lsnare.film.worker;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Created by lucian.snare on 11/20/2015.
 */
public class FilmCrewBatchWorker {
    public static final int RUN_INTERVAL = 30000;
    static Log log = LogFactory.getLog(FilmCrewBatchWorker.class);

    public static void main(String[] args) {
        while(true){
            try {
                //check film records that need to be updated
                log.info("Processing film updates...");
                //update all dirty records

                //sleep
                log.info("Film updates complete");
                Thread.sleep(Integer.valueOf(System.getenv("FILM_CREW_BATCH_WORKER_RUN_INTERVAL")));
            } catch (Exception e) {

            }
        }
    }

}

@@ -244,12 +244,21 @@
 L = 
-3
+1
 000
+ * 60 * 3
 0;%0A 
@@ -677,77 +677,8 @@
 eep(
-Integer.valueOf(System.getenv(%22FILM_CREW_BATCH_WORKER_RUN_INTERVAL%22))
 );%0A 

Remove config variable :)