Skip to content

Commit

Permalink
Minor fixes for dispatching issues (#35)
Browse files Browse the repository at this point in the history
* made some minor fixes to resolve dispatching issues

* updated changelog

* removed cloudpickle upperbound

* updated changelog

* dict to model_dump

* dict to model_dump reverted for now
  • Loading branch information
kessler-frost authored Jan 8, 2024
1 parent 0255a93 commit f8c811b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Changed

- No longer using `PRE_RELEASE` variable, instead switched to directly specifying the covalent version number to install. This was required to support its passing in the new `covalent deploy` command.

### Added

- `covalent_package_version` can now be specified directly from the `covalent deploy` command.

## [0.14.0] - 2023-12-05

### Authors
Expand Down
14 changes: 11 additions & 3 deletions covalent_gcpbatch_plugin/assets/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,22 @@ FROM ${COVALENT_BASE_IMAGE}
ARG COVALENT_TASK_ROOT=/usr/src

ARG COVALENT_PACKAGE_VERSION

# Not used anymore for now
ARG PRE_RELEASE

COPY requirements-image.txt requirements.txt
RUN apt-get update && pip install -r requirements.txt

RUN if [ -z "$PRE_RELEASE" ]; then \
pip install "$COVALENT_PACKAGE_VERSION"; else \
pip install --pre "$COVALENT_PACKAGE_VERSION"; \
# Commenting this out for now as we switch to specifying the package version directly
# RUN if [ -z "$PRE_RELEASE" ]; then \
# pip install "$COVALENT_PACKAGE_VERSION"; else \
# pip install --pre "$COVALENT_PACKAGE_VERSION"; \
# fi

RUN if [ -z "$COVALENT_PACKAGE_VERSION" ]; then \
pip install covalent; else \
pip install "covalent==$COVALENT_PACKAGE_VERSION"; \
fi


Expand Down
4 changes: 2 additions & 2 deletions covalent_gcpbatch_plugin/assets/infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ variable "prerelease" {

variable "covalent_package_version" {
type = string
description = "Covalent version to be installed in the container"
default = "covalent"
description = "Covalent version to be installed in the container, if not specified the latest stable version will be installed"
default = ""
}

variable "prefix" {
Expand Down
1 change: 1 addition & 0 deletions covalent_gcpbatch_plugin/gcpbatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class ExecutorInfraDefaults(BaseModel):
retries: Optional[int] = 3
cache_dir: Optional[str] = "/tmp/covalent"
key_path: str
covalent_package_version: str = ""


_EXECUTOR_PLUGIN_DEFAULTS = ExecutorPluginDefaults().dict()
Expand Down

0 comments on commit f8c811b

Please sign in to comment.