The eligibility statement had to find every finished run among all
pending requests on each poll. PostgreSQL misestimated it by orders of
magnitude, and even with JIT off it read seconds of data per poll on a
large backlog, every few seconds.
The elected monitor now keeps a schedule of pending request ids in
memory. Each tick it looks up only ids above the highest it has seen,
and every 5 minutes it reloads all pending ids, which catches requests
committed out of id order and drops requests completed elsewhere. Each
due request is checked with the per-request check; an unfinished run is
checked again after a tenth of its age, at least every 5 minutes.
Requests found at election start at the longest interval.
Once the user has been told about paused jobs, the run cannot finish
without them, and most paused runs are never resumed. Their checks back
off again from the attention notification, up to hourly, so a quick
resume is still noticed quickly. Requests in deleted histories are
closed without a notification.
The per-request workflow check fetches the invocation ids before using
them: with the recursive CTE inside IN, PostgreSQL joined every
mapped-over job first.
Python 3.10 reached its end-of-life in October 2026.
Also:
- Run `make pyupgrade` and `make format`
- Fix new ruff and mypy errors
- Run `uv lock` and `sh lib/galaxy/dependencies/update.sh --export-only`
- Run `make update-client-api-schema`
List the Galaxy servers that the "Import from Another Galaxy" upload method offers to choose items from, defaulting to usegalaxy.eu, usegalaxy.org and usegalaxy.org.au. Each entry takes a label and an http(s) URL, validated like subdomain_switcher, and the list is exposed to all users through the configuration API. Users can still type the URL of any other Galaxy.
Default container volumes mount the tool data and data manager paths
into every container, user-defined tools included, so user_accessible
only decides which entries a reference_data input offers. Say so, and
how to keep reference data out of reach.
User-defined tools had no way to read reference data installed through
tool data tables. A `reference_data` input offers a table's entries as
a select and hands the chosen entry to expressions like a dataset, with
`path`, `basename`, `source` and the table's other columns under
`metadata`. `multiple: true` supplies a list of entries.
It has its own parameter model, ReferenceDataParameterModel
(gx_reference_data), which runtimeify, the YAML v1 parameter allowlist
and the test case conversions match on. The tool form renders it as a
select.
GalaxyUserTool can only read tables an admin marked `user_accessible`,
checked on the form and again when the job runs. Admin-installed
GalaxyTool YAML tools can read every table.
Refs #22700
A denied entry blocks every tag and digest of the image it names, also
under *. Only a copy published under another name or registry is a
different image to Galaxy.
Denied entries match names, so below an allowed list of * the same image
can still be named through a mirror or pushed to another registry. The
denied list is dependable only below a narrower allowed list.
A bare host such as quay.io parses as the Docker Hub image
docker.io/library/quay.io, so as a denied entry it silently denied
nothing on that registry. Point the admin to quay.io/* instead.
user_defined_tool_denied_containers excludes repositories and namespaces from what the allowed list permits. Tag and digest entries are refused, since the same image can be named another way.
Composite datatypes such as BLAST databases, pbed and velvet keep their
data in the dataset's extra files folder, so a user-defined tool only
reached the primary HTML file through `path`. Add `extra_files_path` to
the runtime input JSON, using the same compute environment rewrite as
`$input.extra_files_path` in XML tools.
The field is only set when the folder exists: rewriting the path makes
Pulsar stage the folder, and staging fails the job if it is missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
galaxy-delete-sessions removed eligible old sessions in one DELETE
using a whole-table window ranking. That held locks in one long
transaction and offered no way to preview, pace, limit, or resume.
It now walks the primary key in ascending pages below a starting
watermark, committing and pausing between pages. Page size, page
count, pause, and ID range are configurable. PostgreSQL pages use
transaction-local statement and lock timeouts. SQLite pages roll back
as a unit.
--dry-run is SELECT-only and READ ONLY on PostgreSQL. Each registered
user's newest session remains protected. The DELETE re-evaluates age,
ownership, newest-session protection, and the selected history/job
policies.
Defaults are unchanged. Opt-in --anonymous-only and
--preserve-anonymous-histories narrow scope.
--preserve-sessions-with-jobs keeps sessions referenced by jobs with
job.user_id IS NULL. Admin docs describe semantics.
Tests cover paging, resume, dry-run, rechecks, rollback, and validation,
and are wired into PostgreSQL CI. Shared DB test cleanup now uses a
savepoint per DELETE, so FK retries keep earlier deletes.
The `logging` example in the GDPR admin docs adds a handler for the
`COMPLIANCE` logger but does not disable propagation, so records are
written to the separate file as well as to the main Galaxy log, not
instead of it.
Suggested-by: mvdbeek <m.vandenbeek@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When `enable_beta_gdpr` is set, Galaxy added a `compliance_log`
`RotatingFileHandler` writing to `compliance.log`, relative to the working
directory. With privilege separation (e.g. the ansible-galaxy `root-dir`
layout) the server directory is not writable by the Galaxy user, so Galaxy
fails to start:
```
PermissionError: [Errno 13] Permission denied: '/srv/galaxy/server/compliance.log'
...
ValueError: Unable to configure handler 'compliance_log': [Errno 13] Permission denied: '/srv/galaxy/server/compliance.log'
```
There is no setting for this path, so remove the dedicated handler: records
of the `COMPLIANCE` logger now go to the same destination as the rest of
Galaxy's log. Admins who want a separate file can still configure one in a
`logging` dictionary, as shown in the GDPR admin docs. This also stops
`enable_beta_gdpr` from modifying the module-level `LOGGING_CONFIG_DEFAULT`.
So that these records are not dropped when `log_level` is higher than
`INFO`, `default_log_config()` now applies `log_level` to the console handler
through a new `LogLevelFilter` instead of the handler level. The filter
passes records at or above `log_level` as before, plus all records of the
compliance logger (whose name is now the `COMPLIANCE_LOGGER_NAME` constant).
Also log the user ID instead of the username in the `delete-user-event`
record written by `UserManager.purge()`, as the docs describe. Logging the
username recorded in plain text the identifier that the purge is about to
redact.
Update the GDPR admin docs:
- fix the flag name (`enable_beta_gdpr`, not `gdpr_compliance`);
- describe where compliance records go by default;
- replace the full `logging` example, which referenced a non-existent
`galaxy.web.stack` module, with the additions needed on top of the default
logging configuration, using an absolute file path;
- correct what purging a user does (display name removed, addresses
deleted rather than hashed) and note that this is pseudonymisation, not
anonymisation;
- recommend keeping the compliance log at least as long as backups.
Replace the outdated "Get root logger" comment in `configure_logging()`,
left over since https://github.com/galaxyproject/galaxy/commit/28511e262e227afc0d3dd3ffdb13d267633e17c2
removed the corresponding code, with a note that the TRACE log level is
already registered when `galaxy.util.custom_logging` is imported.
Fix https://github.com/galaxyproject/galaxy/issues/24617.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The admin doc still said every dropped part goes into the
X-Galaxy-Deprecated-Fields header. Now the list endpoint sends no lift
headers and the single-tool endpoints send a capped summary, with the
full list only in representation_errors.
Add the user_defined_tool_allowed_containers option, a list of trusted
namespaces (quay.io/biocontainers/*) and individual images, optionally
pinned to a tag or digest. It defaults to quay.io/biocontainers/* only;
a lone * allows any image. Malformed entries prevent Galaxy from starting.
The image is checked when a user-defined tool is created, which covers the
API, the tool editor, workflow imports and the authoring assistant, and
again before each job of a user-defined tool, against the container the
tool declares rather than the one a resolver maps it to. The job-time
check fails tools created before an image was removed from the list. On
Pulsar the job is failed directly, not through fail_job, so resubmission
rules do not retry a refusal that would fail the same way.
The test driver allows any image, since existing tests use busybox,
python and similar images.
The homebrew and tool_shed_tap resolvers depend on `brew versions`,
`brew switch` and `brew vinstall`, none of which exist in current
Homebrew, and on the homebrew/science tap, which was archived in 2018.
Remove brew_exts, brew_util, both resolvers, the Homebrew mixins in
resolver_mixins, their mypy.ini sections and their documentation.
Fixes#24632