Skip to content

Commit

Permalink
fix dash to underscore in template (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryyiransun authored Aug 21, 2024
1 parent 8ddec7e commit fb9d4c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions caribou/deployment/client/cli/template/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


@workflow.serverless_function(
name="First-Function",
name="First_Function",
entry_point=True,
regions_and_providers={
"allowed_regions": [
Expand Down Expand Up @@ -53,7 +53,7 @@ def first_function(event: dict[str, Any]) -> dict[str, Any]:
return {"status": 200}


@workflow.serverless_function(name="Second-Function")
@workflow.serverless_function(name="Second_Function")
def second_function(event: dict[str, Any]) -> dict[str, Any]:
print("Hello from second function")

Expand All @@ -69,7 +69,7 @@ def second_function(event: dict[str, Any]) -> dict[str, Any]:
return {"status": 200}


@workflow.serverless_function(name="Third-Function")
@workflow.serverless_function(name="Third_Function")
def third_function(event: dict[str, Any]) -> dict[str, Any]:
print("Hello from third function")

Expand All @@ -85,7 +85,7 @@ def third_function(event: dict[str, Any]) -> dict[str, Any]:
return {"status": 200}


@workflow.serverless_function(name="Fourth-Function")
@workflow.serverless_function(name="Fourth_Function")
def fourth_function(event: dict[str, Any]) -> dict[str, Any]:
print("Hello from fourth function")
request = event["hello"]
Expand All @@ -102,12 +102,12 @@ def fourth_function(event: dict[str, Any]) -> dict[str, Any]:
return {"status": 200}


@workflow.serverless_function(name="Fifth-Function")
@workflow.serverless_function(name="Fifth_Function")
def fifth_function(event: dict[str, Any]) -> dict[str, Any]:
return fifth(workflow, event, seventh_function)


@workflow.serverless_function(name="Sixth-Function")
@workflow.serverless_function(name="Sixth_Function")
def sixth_function(event: dict[str, Any]) -> dict[str, Any]:
print("Hello from sixth function")

Expand All @@ -123,7 +123,7 @@ def sixth_function(event: dict[str, Any]) -> dict[str, Any]:
return {"status": 200}


@workflow.serverless_function(name="Seventh-Function")
@workflow.serverless_function(name="Seventh_Function")
def seventh_function(event: dict[str, Any]) -> dict[str, Any]:
print("Hello from seventh function")
responses: list[dict[str, Any]] = workflow.get_predecessor_data()
Expand Down
2 changes: 1 addition & 1 deletion docs/source_code_annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ workflow = CaribouWorkflow("workflow_name")

```python
@workflow.serverless_function(
name="First-Function",
name="First_Function",
entry_point=True,
regions_and_providers={
"allowed_regions": [
Expand Down

0 comments on commit fb9d4c6

Please sign in to comment.