Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cfa/cloudops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
from ._cloudclient import CloudClient
from ._containerappclient import ContainerAppClient
from .automation import run_experiment, run_tasks
from .batch_helpers import Task
from .helpers import get_log_level

__all__ = [CloudClient, ContainerAppClient, run_experiment, run_tasks]
__all__ = [CloudClient, ContainerAppClient, run_experiment, run_tasks, Task]

logger = logging.getLogger(__name__)
run_time = datetime.datetime.now()
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
The versioning pattern is `major.minor.patch`.

---
## v0.2.4
- change location of Task in imports. It is now located in cfa.cloudops.

## v0.2.3
- add `list_available_images` method to CloudClient for listing all verified Docker images supported by Azure Batch

Expand Down
2 changes: 1 addition & 1 deletion docs/CloudClient/dag.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To create a DAG using `cfa-cloudops`, the building blocks are Task objects from

**Example to create Task objects**
```python
from cfa.cloudops.batch_helpers import Task
from cfa.cloudops import Task
t1 = Task("python3 /main.py")
t2 = Task("python3 /second_task.py")
```
Expand Down
9 changes: 3 additions & 6 deletions docs/examples/dags/running_dags.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "94a6d907",
"metadata": {},
"outputs": [],
"source": [
"# import CloudClient\n",
"from cfa.cloudops import CloudClient\n",
"\n",
"# import Task\n",
"from cfa.cloudops.batch_helpers import Task\n",
"# import CloudClient and Task\n",
"from cfa.cloudops import CloudClient, Task\n",
"\n",
"# initialize CloudClient\n",
"cc = CloudClient()"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cfa.cloudops"
version = "0.2.3"
version = "0.2.4"
description = "Cloud storage, batch, functions, MLOps assistance"
authors = [
{name = "Ryan Raasch", email = "[email protected]"}
Expand Down
Loading