arthur/jobs.py
def _execute(self, backend_args, archive_args):
        """Execute a backend of Perceval.

        Run the backend of Perceval assigned to this job using the
        given arguments. It will raise an `AttributeError` when any of
        the required parameters to run the backend are not found.
        Other exceptions related to the execution of the backend
        will be raised too.

        This method will return an iterator of the items fetched
        by the backend. These items will include some metadata
        related to this job.

        It will also be possible to retrieve the items from the
        archive setting to `True` the parameter `fetch_from_archive`.

        :param backend_args: arguments to execute the backend
        :param archive_args: archive arguments

        :returns: iterator of items fetched by the backend

        :raises AttributeError: raised when any of the required
            parameters is not found
        """
        if not archive_args or not archive_args['fetch_from_archive']:
            return perceval.backend.fetch(self._bklass, backend_args, self.category,
                                          manager=self.archive_manager)
        else:
            return perceval.backend.fetch_from_archive(self._bklass, backend_args,
                                                       self.archive_manager, self.category,
                                                       archive_args['archived_after'])
def _execute(self, backend_args, archive_args):
        if not archive_args or not archive_args['fetch_from_archive']:
            return perceval.backend.fetch(self._bklass, backend_args, self.category,
                                          manager=self.archive_manager)
        else:
            return perceval.backend.fetch_from_archive(self._bklass, backend_args,
                                                       self.archive_manager, self.category,
                                                       archive_args['archived_after'])
def _execute ( self , backend_args , archive_args ) : if not archive_args or not archive_args [ 'fetch_from_archive' ] : return perceval . backend . fetch ( self . _bklass , backend_args , self . category , manager = self . archive_manager ) else : return perceval . backend . fetch_from_archive ( self . _bklass , backend_args , self . archive_manager , self . category , archive_args [ 'archived_after' ] )
Execute a backend of Perceval.

        Run the backend of Perceval assigned to this job using the
        given arguments. It will raise an `AttributeError` when any of
        the required parameters to run the backend are not found.
        Other exceptions related to the execution of the backend
        will be raised too.

        This method will return an iterator of the items fetched
        by the backend. These items will include some metadata
        related to this job.

        It will also be possible to retrieve the items from the
        archive setting to `True` the parameter `fetch_from_archive`.

        :param backend_args: arguments to execute the backend
        :param archive_args: archive arguments

        :returns: iterator of items fetched by the backend

        :raises AttributeError: raised when any of the required
            parameters is not found
Execute a backend of Perceval .