Skip to content

Commit

Permalink
more formatting cleanup (#1015)
Browse files Browse the repository at this point in the history
* more formatting cleanup

Signed-off-by: Niels Bantilan <[email protected]>

* more cleanup

Signed-off-by: Niels Bantilan <[email protected]>

* use requirements.in for mlflow plugin example

Signed-off-by: Niels Bantilan <[email protected]>

---------

Signed-off-by: Niels Bantilan <[email protected]>
Co-authored-by: Kevin Su <[email protected]>
  • Loading branch information
cosmicBboy and pingsutw authored Jul 6, 2023
1 parent 73840e6 commit 80427a5
Show file tree
Hide file tree
Showing 5 changed files with 419 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/athena_plugin/athena_plugin/athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def no_io_wf():
SELECT * FROM vaccinations where iso_code like '{{ .Inputs.iso_code }}'
""",
# While we define a generic schema as the output here, Flyte supports more strongly typed schemas to provide
# better compile-time checks for task compatibility. Refer to :py:class:`flytekit.FlyteSchema` for more details
# better compile-time checks for task compatibility. Refer to {py:class}`flytekit.FlyteSchema` for more details
output_schema_type=FlyteSchema,
# Cache the output data so we don't have to re-run the query in future workflow iterations
# should we decide to change how we manipulate data downstream.
# For more information about caching, visit :ref:`Task Caching <task_cache>`
# For more information about caching, visit {ref}`Task Caching <task_cache>`
cache=True,
cache_version="1.0",
)
Expand Down
3 changes: 2 additions & 1 deletion examples/mlflow_plugin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ RUN python3 -m venv ${VENV}
ENV PATH="${VENV}/bin:$PATH"

# Install Python dependencies
RUN pip install flytekitplugins-mlflow tensorflow protobuf==3.20.1
COPY requirements.txt /root
RUN pip install -r /root/requirements.txt

# Copy the actual code
COPY . /root/
Expand Down
3 changes: 3 additions & 0 deletions examples/mlflow_plugin/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
flytekitplugins-mlflow
tensorflow
protobuf==3.20.1
Loading

0 comments on commit 80427a5

Please sign in to comment.