Releases: stac-utils/stac-task
Releases · stac-utils/stac-task
v0.6.1
Deprecated
- Bare
ProcessDefinition
objects are deprecated in favor of arrays ofProcessDefinition
objects.
Added
- Adds workflow-level options to the ProcessDefinition object in a new
workflow_options
field. They are combined with each task's options, giving precedence to the task options on conflict. - Adds a
workflow_options
property to theTask
class that returns theworkflow_options
dictionary from theProcessDefinition
object. - Adds a
task_options
property to theTask
class that returns the task options from thetasks
dictionary in theProcessDefinition
object.
v0.6.0
v0.5.1
- download_item_assets and download_items_assets methods now accept a parameter
file_name
for configuring the filename to save the STAC Item as. If unset, it defaults toitem.json
and if set toNone
the filename is inferred from the ID.
v0.5.0
Deprecated
- Support for Python 3.8 has been removed.
- CLI flags
--skip-upload
and--skip-validation
deprecated in favor of--upload/--no-upload
and--validate/no-validate
- Task constructor arguments
skip_upload
andskip_validation
deprecated in favor ofupload
andvalidate
Fixed
- Several CLI arguments were missing
help
descriptions
Changed
- Replaced the use of fsspec with stac-asset for downloading Item Assets
--local
flag no longer turns off validation- The
processing:software
field is no longer added to Items by default. This is
because the intention of the STAC Processing Extension is to add metadata about the
processing of the data, whereas stactask is frequently used only for processing
metadata. Users wishing to retain this field can call the methodTask.add_software_version_to_item(item)
on the resulting item to add it. - Task logging now identifies the task instance that is logging, e.g.,
INFO:my-task-name:[my-collection/workflow-my-workflow/task-1] Task did a thing.
- Collection assignment now assigns the first matching collection expression, rather
than the last.
Added
- Property
collection_mapping
toTask
class to retrieve the collection mappings
from upload_options - Utils method
find_collection
to allow the retrieval of the collection name for
an Item dict - Task method
upload_local_item_assets_to_s3(item)
to upload all local assets to S3 - Added support for using stdin and stdout as input and output for task, e.g.,
cat in.json | src/mytask/mytask.py run --local | tee out.json
v0.4.2
v0.4.1
v0.4.0
v0.3.0
Changed
- handler now explicitly calls performs workdir cleanup
- workdir cleanup is correctly defensive and logs errors
v0.2.0
[v0.2.0] - 2023-11-16
Changed
-
Ensure
workdir
is an absolute path
(#54). -
When a
workdir
is set for aTask
theworkdir
will no longer be removed
by default (#51). That is,
thesave_workdir
argument toTask
constructor now defaults toNone
, and
if left asNone
the default behavior is now conditional on whether or not a
workdir
is specified.- If
workdir
isNone
, a temp directory will be created andsave_workdir
will default toFalse
(remove working directory). - If a
workdir
is specified, thensave_workdir
will default toTrue
(keep working directory).
In either case, an explicit
True
orFalse
value forsave_workdir
will
take precedence. - If