- Oct 30, 2024
-
-
David Douard authored
These have been deprecated for ages now.
-
David Douard authored
-
- Oct 28, 2024
-
-
David Douard authored
The former has been deprecated for ages now.
-
- Oct 24, 2024
-
-
David Douard authored
Normalize the scheduler db for swh.core 3.6 with improved `swh db` handling capabilities. Remove test_init.py, it's now outdated.
-
Antoine R. Dumont authored
This log message serves as a crude healt check so we keep it but we make it a bit more interesting.
-
- Oct 17, 2024
-
-
Antoine R. Dumont authored
Refs. swh/devel/swh-scheduler#4687
-
Antoine R. Dumont authored
Refs. swh/devel/swh-scheduler#4687
-
Antoine R. Dumont authored
Refs. swh/devel/swh-scheduler#4687
-
Antoine R. Dumont authored
Refs. swh/devel/swh-scheduler#4687
-
Antoine R. Dumont authored
This also makes the function return the number of scheduled origins. Refs. swh/devel/swh-scheduler#4687
-
Antoine R. Dumont authored
The current opened cli was not looping. In effect, doing one round, schedule origins and then crash in production-like environment. There is no issue in the docker environment as the loop is implemented outside the pre-existing cli. This kept said cli to avoid breaking the docker environment. Refs. swh/devel/swh-scheduler#4687
-
- Oct 14, 2024
-
-
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.
-
Antoine Lambert authored
It allows to return the set of visit types from the origins listed by a specific lister. Related to #4687.
-
- Oct 09, 2024
-
-
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.
-
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.
-
- Sep 10, 2024
-
-
Antoine Lambert authored
It exist cases (for instance when running tests on Jenkins) where more than one log record is captured during that test, making it flaky.
-
- Aug 30, 2024
-
-
Antoine Lambert authored
-
Antoine Lambert authored
-
David Douard authored
This should allow a failed task to return the reason for the failure and make it possible to be displayed to the end user, especially for Save-Code-Now. Related to swh/devel/swh-web#4805
-
- Aug 27, 2024
-
-
David Douard authored
-
- Jul 17, 2024
-
-
Nicolas Dandrimont authored
This expands the schema to add fork (boolean yes/no/unknown) and fork source (URL field) if available from the listers, which will be usable for scheduling heuristics (e.g. for GitHub).
-
Antoine Lambert authored
-
- Jul 16, 2024
-
-
It enables to efficiently filter by URLs the origins recorded by a lister. Related to swh/devel/swh-web#4802.
-
Database table priority_ratio and function swh_scheduler_nb_priority_tasks are no longer used by swh-scheduler interface so better removing them.
-
- Jul 11, 2024
-
-
Antoine Lambert authored
Add missing description of ids argument notably. Related to swh/devel/swh-web#4802.
-
- May 23, 2024
-
-
Nicolas Dandrimont authored
Not all celery tasks are recorded in the task_run table, but the celery listener needs to be able to process all events, even for tasks it doesn't know. The stricter type checking has broken this, coincidental, ignoring. Closes: #4688
-
- May 22, 2024
-
-
Antoine Lambert authored
Wrap calls to attr.as_dict and attr.as_tuple in methods to_dict and to_tuple to avoid explicit import of the attr package in client code.
-
Antoine Lambert authored
-
Antoine Lambert authored
Add a new TaskRun class based on attr package in order to improve scheduler interface typing and code readability.
-
Antoine Lambert authored
Add a new Task class based on attr package in order to improve scheduler interface typing and code readability.
-
Antoine Lambert authored
Add a new TaskType class based on attr package in order to improve scheduler interface typing and code readability.
-
- May 15, 2024
-
-
Jérémy Bobbio (Lunar) authored
As we include `README.rst`, having the same introductory paragraph in `docs/index.rst` resulted in duplication in the documentation once built.
-
- Apr 26, 2024
-
-
Antoine Lambert authored
Since the release of sentry-python 2.0, it is now possible to use the sentry_events fixture in tests for celery tasks.
-
Antoine Lambert authored
swh-core v3.0.1 now allows to initialize sentry with a None dsn so using a fake DSN for first sentry initialization is no longer needed.
-
- Apr 08, 2024
-
-
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
-
- Mar 29, 2024
-
-
David Douard authored
-
- Mar 20, 2024
-
-
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.
-
- Mar 11, 2024
-
-
Antoine Lambert authored
Remove use of --import-mode=importlib pytest option and move conftest.py file from swh/scheduler/tests to swh/scheduler to fix tests execution with latest pytest release.
-
- Mar 04, 2024
-
-
Antoine R. Dumont authored
That somehow breaks the build.
-
Antoine R. Dumont authored
This allows to load the configuration from a file if provided (flag -C/--config-file), or an environment variable SWH_CONFIG_FILENAME if provided or as a final fallback from the default configuration already defined in the module. It's expected as some other swh clis are already loading their configuration.
-