   require Logger
   alias FarmbotCeleryScript.AST
   alias FarmbotCore.{
-    Asset, 
+    Asset,
     Asset.FarmEvent
   }
   use GenServer

    farm_event = state.farm_event

    farm_event
    |> FarmEvent.build_calendar(farm_event.start_time)
    # get rid of any item that has already been scheduled/executed
    |> Enum.reject(fn(scheduled_at) -> 
      Asset.get_farm_event_execution(farm_event, scheduled_at)
    end)
    |> Enum.each(fn(at) -> 
      schedule_sequence(farm_event, at)
    end)
    {:noreply, state}

    }
    FarmbotCeleryScript.schedule(celery_ast, at, farm_event)
  end
end
