コード例 #1
0
 def handle(self, *args, **options):
     
     start_date = None if len(args) < 1 else string_to_datetime(args[0]) 
     end_date = None if len(args) < 2 else string_to_datetime(args[1]) 
     cleanup = options["cleanup"]
     return runner.update_warehouse(start_date, end_date, cleanup) 
     
コード例 #2
0
    def handle(self, *args, **options):

        start_date = None if len(args) < 1 else string_to_datetime(args[0])
        end_date = None if len(args) < 2 else string_to_datetime(args[1])
        cleanup = options["cleanup"]
        return runner.update_warehouse(start_date, end_date, cleanup)
コード例 #3
0
def update_warehouse_async(start_date=None, end_date=None, cleanup=False):
    """
    To asynchronously update the warehouse, e.g. from a view.
    """
    return update_warehouse(start_date, end_date, cleanup)