Skip to content

Releases: stac-utils/stac-task

v0.6.1

25 Nov 20:30
Compare
Choose a tag to compare

Deprecated

  • Bare ProcessDefinition objects are deprecated in favor of arrays of ProcessDefinition 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 the Task class that returns the workflow_options dictionary from the ProcessDefinition object.
  • Adds a task_options property to the Task class that returns the task options from the tasks dictionary in the ProcessDefinition object.

v0.6.0

19 Sep 18:53
436691e
Compare
Choose a tag to compare

⚠️ Breaking Change

  • (#147) Moved Task.validate from class method to instance method, availing implementers of other instance convenience methods (i.e. self.parameters).

Fill diff: v0.5.1...0.6.0

v0.5.1

23 May 14:04
d15a99a
Compare
Choose a tag to compare
  • 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 to item.json and if set to None the filename is inferred from the ID.

v0.5.0

09 May 16:29
7ee8533
Compare
Choose a tag to compare

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 and skip_validation deprecated in favor of upload and validate

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 method Task.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 to Task 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

08 Mar 14:18
61727e5
Compare
Choose a tag to compare

[v0.4.2] - 2024-03-08

Added

  • (#92) Task.upload_item_assets_to_s3 and asset_io.upload_item_assets_to_s3 support explicitly specifying the boto3utils3.s3 object.

v0.4.1

06 Mar 22:51
v0.4.1
3656cbb
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.4.1

v0.4.0

14 Feb 17:20
1e505b7
Compare
Choose a tag to compare

Fixed

  • (#86) Guard cleanup of workdir to ensure task was actually created.

Added

  • (#72) Given that _get_file is part of the AsyncFileSystem spec, this
    adds the synchronous get_file as a way to retrieve files if _get_file is
    not found.
  • (#77) Added option keep_original_filenames to download routines to
    support legacy applications dependent on filename specifics.

v0.3.0

20 Dec 20:11
9ead2f9
Compare
Choose a tag to compare

Changed

  • handler now explicitly calls performs workdir cleanup
  • workdir cleanup is correctly defensive and logs errors

v0.2.0

16 Nov 20:20
a6aaebc
Compare
Choose a tag to compare

[v0.2.0] - 2023-11-16

Changed

  • Ensure workdir is an absolute path
    (#54).

  • When a workdir is set for a Task the workdir will no longer be removed
    by default (#51). That is,
    the save_workdir argument to Task constructor now defaults to None, and
    if left as None the default behavior is now conditional on whether or not a
    workdir is specified.

    • If workdir is None, a temp directory will be created and save_workdir
      will default to False (remove working directory).
    • If a workdir is specified, then save_workdir will default to True
      (keep working directory).

    In either case, an explicit True or False value for save_workdir will
    take precedence.

v0.1.1

12 Jul 14:42
v0.1.1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.0...v0.1.1