Skip to content

Commit

Permalink
fix code formatting spot_instances.py (flyteorg#453)
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Bantilan <[email protected]>
  • Loading branch information
cosmicBboy authored Oct 19, 2021
1 parent 1b48e28 commit 6ec956e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cookbook/core/containerization/spot_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@
# Setting Interruptible
# ^^^^^^^^^^^^^^^^^^^^^
# To run your workload on a spot/preemptible instance, you can set interruptible to ``True``. For example:
# @task(cache_version='1', interruptible=True)
# def add_one_and_print(value_to_print: int) -> int:
# return value_to_print + 1
#
# .. code-block:: python
#
# @task(cache_version='1', interruptible=True)
# def add_one_and_print(value_to_print: int) -> int:
# return value_to_print + 1

# %%
# By setting this value, Flyte will schedule your task on an auto-scaling group (ASG) with only spot instances.
Expand Down

0 comments on commit 6ec956e

Please sign in to comment.