Skip to content
Snippets Groups Projects
  1. Oct 30, 2024
  2. Oct 28, 2024
  3. Oct 24, 2024
  4. Oct 17, 2024
  5. Oct 14, 2024
    • Antoine Lambert's avatar
      cli/origin: Add schedule-high-priority-first-visits command · 4adc20b0
      Antoine Lambert authored
      This new command in the origin group enables to schedule first
      visits with high priority for origins registered by listers having
      the first_visits_priority_queue attribute set.
      
      The command ensures the visits of all origins registered by such
      listers will be scheduled with high priority after the first listing
      regardless if some have already been scheduled prior it.
      
      Subsequent executions of such listers will no longer trigger visits
      with high priority though, those will be scheduled by the recurrent
      visits runner.
      
      Related to #4687.
      4adc20b0
    • Antoine Lambert's avatar
      interface: Add get_visit_types_for_listed_origins method · 89c99a03
      Antoine Lambert authored
      It allows to return the set of visit types from the origins listed
      by a specific lister.
      
      Related to #4687.
      89c99a03
  6. Oct 09, 2024
    • Antoine Lambert's avatar
      interface: Add with_first_visits_to_schedule parameter to get_listers · 6b266002
      Antoine Lambert authored
      This new optional parameter enables to only return listers whose first
      visits of listed origins must be scheduled with high priority after a
      first listing but were not scheduled yet.
      
      Those types of listers have the first_visits_queue_prefix attribute set.
      
      Related to #4687.
      6b266002
    • Antoine Lambert's avatar
      model: Add new columns to Lister model related to priority scheduling · ccee462b
      Antoine Lambert authored
      In order to implement a new scheduler runner that will schedule first
      visits of listed origins with high priority, add the following new
      columns to the Lister model:
      
      - last_listing_finished_at: Timestamp at which the last execution of
        the lister finished
      
      - first_visits_queue_prefix: Optional prefix of message queue names
        to schedule first visits with high priority
      
      - first_visits_scheduled_at: Timestamp at which all the first visits
        of listed origins with high priority were scheduled
      
      Related to #4687.
      ccee462b
  7. Sep 10, 2024
  8. Aug 30, 2024
  9. Aug 27, 2024
  10. Jul 17, 2024
  11. Jul 16, 2024
  12. Jul 11, 2024
  13. May 23, 2024
  14. May 22, 2024
  15. May 15, 2024
  16. Apr 26, 2024
  17. Apr 08, 2024
    • Vincent Sellier's avatar
      origin cli: Fix the available slot count computation · 698fb5d8
      Vincent Sellier authored
      The get_available_slots method already returns the exact available slots
      in a queue so there is no need to recompute it with the current
      threshold. As a side effect, the queue_size was always 0 when there was no
      messages in the queue.
      
      The behavior was also fixed when the queue does not exist, the max_lengh
      is returned if provided instead of the default MAX_NUM_TASKS
      Verified
      698fb5d8
  18. Mar 29, 2024
  19. Mar 20, 2024
    • Antoine Lambert's avatar
      celery_backend/config: Fix enabling of celery integration for sentry · 236f7986
      Antoine Lambert authored
      About a year ago, we updated the way sentry is configured for celery
      tasks by not relying anymore on the worker_init signal and the
      SWH_SENTRY_DSN environment variable but rather by using a task_prerun
      signal callback that sets sentry DSN through a dict mapping a task name
      to its sentry DSN.
      
      But as a result it broke our celery integration for sentry (that notably
      adds task name and parameters in sentry events) as integrations must be
      initialized in the worker_init signal callback to work properly. So ensure
      they are by first setting a fake DSN in the worker_init signal callback and
      update tests to check celery integration is enabled.
      
      Related to swh/meta#4949.
      236f7986
  20. Mar 11, 2024
  21. Mar 04, 2024
Loading