Skip to content

Commit 5c5acb0

Browse files
committed
Merge branch 'main' of https://github.com/Shuffle/app_sdk
2 parents 83c356e + 075a84d commit 5c5acb0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ With the above function as an example
3535
python3 app.py --standalone --action=sample_function paramname=World
3636
```
3737

38+
**PS: The following parameters are reserved, allowing you to set proper variables for testing such as local backends:**
39+
```
40+
--shuffle_url="http://custom_backend_url"
41+
--shuffle_authorization="auth"
42+
--shuffle_executionid="execution_id"
43+
```
44+
3845
Example wit [Shuffle Tools+Liquid](https://github.com/Shuffle/python-apps/tree/master/shuffle-tools/1.2.0/src) and the [Shuffle Tools app and the "repeat back to me" function](https://github.com/Shuffle/python-apps/blob/678187d1198f5e8fd2072e475dbbbf858728dde8/shuffle-tools/1.2.0/src/app.py#L235)
3946
```bash
4047
python3 app.py --standalone --action=repeat_back_to_me '--call={{ "hello" | replace: "o", "lol" }}'

shuffle_sdk/shuffle_sdk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333

3434

3535
runtime = os.getenv("SHUFFLE_SWARM_CONFIG", "")
36+
if runtime == "swarm":
37+
runtime = "run"
3638

3739
###
3840
###

0 commit comments

Comments
 (0)