Exemple #1
0
    def __init__(self, *args, **kwargs):

        # If a date parameter has been passed in, we'll just use that
        # Otherwise, loop through the files and get all dates
        super(DatasetTask, self).__init__(*args, **kwargs)

        # Get or create the resource object
        self.resource_id = self.get_or_create_resource()

        # Set up a mongo target to be used to mark complete
        self.mongo_target = MongoTarget(database=config.get(
            'mongo', 'database'),
                                        update_id=self.update_id())
 def output(self):
     return MongoTarget(database=self.database, update_id=self.task_id)