Skip to content
Snippets Groups Projects
  1. Sep 15, 2022
  2. Aug 22, 2022
  3. Jul 29, 2022
  4. Jul 08, 2022
  5. Jun 03, 2022
  6. May 31, 2022
  7. May 12, 2022
  8. May 09, 2022
  9. May 06, 2022
  10. Apr 28, 2022
  11. Apr 27, 2022
  12. Apr 26, 2022
  13. Apr 21, 2022
  14. Apr 20, 2022
    • David Douard's avatar
      Make scheduling policy used in schedule_recurrent configurable · a76bb02f
      David Douard authored
      Add support for a configuration option "scheduling_policy" in the config
      file loaded by the 'swh scheduler schedule-recurrent' command. This
      config entry allows to specify the scheduling policies used by the
      schedule-recurrent tool, instead of having them hardcoded in the source
      code.
      
      A visit type policy config entry should have at least a 'weight' value
      for each policy.
      
      Default values are unchanged.
      
      Eg.:
      
        scheduling_policy:
          git:
            - policy: already_visited_order_by_lag
              weight: 55
              tablesample: 0.5
            - policy: never_visited_oldest_update_first
              weight: 45
              tablesample: 0.5
      
      Note: there may not be configuration entries for all visit types, but if
            a visit type policy is configured, the config entry should be complete
            (in other words, the merging of the configuration with the default
            values is only done at first config level).
      a76bb02f
  15. Apr 08, 2022
Loading