Skip to content
Snippets Groups Projects
  1. Apr 13, 2023
  2. Oct 13, 2022
  3. Oct 03, 2022
  4. May 23, 2022
  5. May 20, 2022
  6. Nov 23, 2020
  7. Oct 19, 2020
  8. Sep 23, 2020
  9. Nov 06, 2019
  10. Nov 04, 2019
  11. Oct 14, 2019
  12. Oct 09, 2019
  13. Sep 03, 2019
    • David Douard's avatar
      implement listers as plugins · e3c0ea9d
      David Douard authored
      Listers are declared as plugins via the `swh.workers` entry_point.
      
      As such, the registry function is expected to return a dict with the
      `task_modules` field (as for generic worker plugins), plus:
      
      - `lister`: the lister class,
      - `models`: list of SQLAlchemy models used by this lister,
      - `init` (optionnal): hook (callable) used to initialize the lister's state
        (typically, create/initialize the database for this lister).
        If not set, the default implementation creates database tables (after
        optionally having deleted exisintg ones) according to models declared in
        the `models` register field.
      
      There is no need for explicitely add lister task modules in the main
      `conftest` module, but any new/extra lister to be tested must be registered
      (the tested lister module must be properly installed in the test environment).
      
      Also refactor a bit the cli tools:
      - add support for the standard --config-file option at the 'lister' group
        level,
      - move the --db-url to the 'lister' group,
      - drop the --lister option for the `swh lister db-init` cli tool:
        initializing (especially with --drop-tables) the database for a single
        lister is unreliable, since all tables are created using a sibgle MetaData
        (in the same namespace).
      e3c0ea9d
  14. Feb 06, 2019
  15. Jan 16, 2019
  16. Dec 20, 2018
  17. Jul 27, 2018
  18. Jul 18, 2018
  19. Oct 30, 2017
  20. Oct 04, 2017
  21. Jun 12, 2017
  22. Feb 09, 2017
  23. Dec 15, 2016
  24. Oct 20, 2016
  25. Oct 19, 2016
  26. Sep 13, 2016
  27. Mar 17, 2016
  28. Mar 09, 2016
  29. Sep 21, 2015
Loading