🧹 v2.1.5 Add `tag pipes`, improve `ThreadPools`, add `VOLUME` to `Dockerfile`.
-
Add the action
tag pipes
.
Tags may be added or removed with thetag pipes
action. Note that the flag--tags
applies to existing tags for filtering; flags to be added or removed are positional arguments.### Tag all `sql:main` pipes with `production` and `sync-daily`. mrsm tag pipes production sync-daily -c sql:main ### Remove the `production`` tag from all pipes tagged as `production`. mrsm tag pipes _production --tags production
-
Add
--tags
support toregister pipes
.
The actionregister pipe
with the--tags
flag will auto-tag the new pipes. -
Clean up warnings on Python 3.12.
All instances ofdatetime.utcnow()
have been replaced bydatetime.now(timezone.utc).replace(tzinfo=None)
(to preserve behavior). A full migration to timezone-aware datetimes would have to happen in a minor release. -
Improve timezone-aware datetime support for MSSQL.
Passing a timezone-aware datetime as a date bound for MSSQL should now be fixed. -
Add an explicit
VOLUME
to theDockerfile
.
The path/meerschaum
is now explicitly set as aVOLUME
in the Docker image. -
Add
--tags
filtering to theshow tags
action. -
Improve global
ThreadPool
handling.
Global pools are now created on a per-worker (and per-class) basis, allowing for switching between workers within the same process. Note that global pools are maintained to allow for nested chunking and the limit the number of connections (e.g. avoid threads creating their own pools). -
Fix a bug when selecting only by negating tags.
Pipes may now be selected by only specifying negated tags. -
Rename
meerschaum.utils.get_pipes
tomeerschaum.utils._get_pipes
to avoid namespace collissions.
The functionsget_pipes()
andfetch_pipes_keys()
are available at themeerschaum.utils
module namespace.