fal 1.25.0__py3-none-any.whl → 1.26.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fal might be problematic. Click here for more details.
- fal/_fal_version.py +2 -2
- fal/api.py +7 -5
- fal/cli/apps.py +5 -1
- fal/sdk.py +8 -3
- {fal-1.25.0.dist-info → fal-1.26.0.dist-info}/METADATA +1 -1
- {fal-1.25.0.dist-info → fal-1.26.0.dist-info}/RECORD +9 -9
- {fal-1.25.0.dist-info → fal-1.26.0.dist-info}/WHEEL +0 -0
- {fal-1.25.0.dist-info → fal-1.26.0.dist-info}/entry_points.txt +0 -0
- {fal-1.25.0.dist-info → fal-1.26.0.dist-info}/top_level.txt +0 -0
fal/_fal_version.py
CHANGED
fal/api.py
CHANGED
|
@@ -319,24 +319,26 @@ def _handle_grpc_error():
|
|
|
319
319
|
try:
|
|
320
320
|
return fn(*args, **kwargs)
|
|
321
321
|
except grpc.RpcError as e:
|
|
322
|
+
msg = e.details() or str(e)
|
|
322
323
|
if e.code() == grpc.StatusCode.UNAVAILABLE:
|
|
323
324
|
raise FalServerlessError(
|
|
324
325
|
"Could not reach fal host. "
|
|
325
326
|
"This is most likely a transient problem. "
|
|
326
|
-
"
|
|
327
|
+
"If it persists, please reach out to support@fal.ai with the following details: " # noqa: E501
|
|
328
|
+
f"{msg}"
|
|
327
329
|
)
|
|
328
|
-
elif
|
|
330
|
+
elif msg.endswith("died with <Signals.SIGKILL: 9>.`."):
|
|
329
331
|
raise FalServerlessError(
|
|
330
332
|
"Isolated function crashed. "
|
|
331
333
|
"This is likely due to resource overflow. "
|
|
332
334
|
"You can try again by setting a bigger `machine_type`"
|
|
333
335
|
)
|
|
334
336
|
elif e.code() == grpc.StatusCode.INVALID_ARGUMENT and (
|
|
335
|
-
"The function function could not be deserialized" in
|
|
337
|
+
"The function function could not be deserialized" in msg
|
|
336
338
|
):
|
|
337
|
-
raise FalMissingDependencyError(
|
|
339
|
+
raise FalMissingDependencyError(msg) from None
|
|
338
340
|
else:
|
|
339
|
-
raise FalServerlessError(
|
|
341
|
+
raise FalServerlessError(msg)
|
|
340
342
|
|
|
341
343
|
return handler
|
|
342
344
|
|
fal/cli/apps.py
CHANGED
|
@@ -310,7 +310,11 @@ def _add_runners_parser(subparsers, parents):
|
|
|
310
310
|
def _delete(args):
|
|
311
311
|
client = get_client(args.host, args.team)
|
|
312
312
|
with client.connect() as connection:
|
|
313
|
-
connection.delete_alias(args.app_name)
|
|
313
|
+
res = connection.delete_alias(args.app_name)
|
|
314
|
+
if res is None:
|
|
315
|
+
args.console.print(f"Application {args.app_name!r} not found.")
|
|
316
|
+
else:
|
|
317
|
+
args.console.print(f"Application {args.app_name!r} deleted ({res})")
|
|
314
318
|
|
|
315
319
|
|
|
316
320
|
def _add_delete_parser(subparsers, parents):
|
fal/sdk.py
CHANGED
|
@@ -746,10 +746,15 @@ class FalServerlessConnection:
|
|
|
746
746
|
)
|
|
747
747
|
self.stub.SetAlias(request)
|
|
748
748
|
|
|
749
|
-
def delete_alias(self, alias: str) -> str:
|
|
749
|
+
def delete_alias(self, alias: str) -> str | None:
|
|
750
750
|
request = isolate_proto.DeleteAliasRequest(alias=alias)
|
|
751
|
-
|
|
752
|
-
|
|
751
|
+
try:
|
|
752
|
+
res: isolate_proto.DeleteAliasResult = self.stub.DeleteAlias(request)
|
|
753
|
+
return res.revision
|
|
754
|
+
except grpc.RpcError as e:
|
|
755
|
+
if e.code() == grpc.StatusCode.NOT_FOUND:
|
|
756
|
+
return None
|
|
757
|
+
raise
|
|
753
758
|
|
|
754
759
|
def list_aliases(self) -> list[AliasInfo]:
|
|
755
760
|
request = isolate_proto.ListAliasesRequest()
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
fal/__init__.py,sha256=wXs1G0gSc7ZK60-bHe-B2m0l_sA6TrFk4BxY0tMoLe8,784
|
|
2
2
|
fal/__main__.py,sha256=4JMK66Wj4uLZTKbF-sT3LAxOsr6buig77PmOkJCRRxw,83
|
|
3
|
-
fal/_fal_version.py,sha256=
|
|
3
|
+
fal/_fal_version.py,sha256=Munn2JvNJkaAWn7AFHBzTBfXnoY8sVIidDZY9Jat_1A,513
|
|
4
4
|
fal/_serialization.py,sha256=npXNsFJ5G7jzBeBIyVMH01Ww34mGY4XWhHpRbSrTtnQ,7598
|
|
5
5
|
fal/_version.py,sha256=1BbTFnucNC_6ldKJ_ZoC722_UkW4S9aDBSW9L0fkKAw,2315
|
|
6
|
-
fal/api.py,sha256=
|
|
6
|
+
fal/api.py,sha256=MRVuGn2gqFqm30YLk78Xgm-Rtw5POT9NCbUr67SWGcY,47397
|
|
7
7
|
fal/app.py,sha256=pMf7P9iVEcw5HiFCYgSdHkjX6f-1SPe06EOwYH1ImGA,24079
|
|
8
8
|
fal/apps.py,sha256=pzCd2mrKl5J_4oVc40_pggvPtFahXBCdrZXWpnaEJVs,12130
|
|
9
9
|
fal/config.py,sha256=19tR4zWr2yqsBRWNhFV1jKMiXAASRz2Et62k68-1r9Y,3290
|
|
@@ -13,7 +13,7 @@ fal/flags.py,sha256=QonyDM7R2GqfAB1bJr46oriu-fHJCkpUwXuSdanePWg,987
|
|
|
13
13
|
fal/project.py,sha256=QgfYfMKmNobMPufrAP_ga1FKcIAlSbw18Iar1-0qepo,2650
|
|
14
14
|
fal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
fal/rest_client.py,sha256=kGBGmuyHfX1lR910EoKCYPjsyU8MdXawT_cW2q8Sajc,568
|
|
16
|
-
fal/sdk.py,sha256=
|
|
16
|
+
fal/sdk.py,sha256=zTT9AlrMZO1f3VZHvxe27gU1HfbO3ucE04_SNKbMzDY,26157
|
|
17
17
|
fal/sync.py,sha256=ZuIJA2-hTPNANG9B_NNJZUsO68EIdTH0dc9MzeVE2VU,4340
|
|
18
18
|
fal/utils.py,sha256=iQTBG3-i6JZgHkkwbY_I4210g0xoW-as51yrke608u0,2208
|
|
19
19
|
fal/workflows.py,sha256=Zl4f6Bs085hY40zmqScxDUyCu7zXkukDbW02iYOLTTI,14805
|
|
@@ -23,7 +23,7 @@ fal/auth/local.py,sha256=sndkM6vKpeVny6NHTacVlTbiIFqaksOmw0Viqs_RN1U,1790
|
|
|
23
23
|
fal/cli/__init__.py,sha256=padK4o0BFqq61kxAA1qQ0jYr2SuhA2mf90B3AaRkmJA,37
|
|
24
24
|
fal/cli/_utils.py,sha256=anFfy6qouB8QzH0Yho41GulGiJu3q1KKIwgyVQCzgRQ,1593
|
|
25
25
|
fal/cli/api.py,sha256=ZuDE_PIC-czzneTAWMwvC7P7WnwIyluNZSuJqzCFhqI,2640
|
|
26
|
-
fal/cli/apps.py,sha256=
|
|
26
|
+
fal/cli/apps.py,sha256=xny6t_zVTZ8oml_sfigr7BA1UZW6O-fkPsbfm6ETMr4,10484
|
|
27
27
|
fal/cli/auth.py,sha256=Qe-Z3ycXJnOzHimz5PjCQYoni8MF4csmdL19yGN7a1o,5171
|
|
28
28
|
fal/cli/cli_nested_json.py,sha256=veSZU8_bYV3Iu1PAoxt-4BMBraNIqgH5nughbs2UKvE,13539
|
|
29
29
|
fal/cli/create.py,sha256=a8WDq-nJLFTeoIXqpb5cr7GR7YR9ZZrQCawNm34KXXE,627
|
|
@@ -142,8 +142,8 @@ openapi_fal_rest/models/workflow_node_type.py,sha256=-FzyeY2bxcNmizKbJI8joG7byRi
|
|
|
142
142
|
openapi_fal_rest/models/workflow_schema.py,sha256=4K5gsv9u9pxx2ItkffoyHeNjBBYf6ur5bN4m_zePZNY,2019
|
|
143
143
|
openapi_fal_rest/models/workflow_schema_input.py,sha256=2OkOXWHTNsCXHWS6EGDFzcJKkW5FIap-2gfO233EvZQ,1191
|
|
144
144
|
openapi_fal_rest/models/workflow_schema_output.py,sha256=EblwSPAGfWfYVWw_WSSaBzQVju296is9o28rMBAd0mc,1196
|
|
145
|
-
fal-1.
|
|
146
|
-
fal-1.
|
|
147
|
-
fal-1.
|
|
148
|
-
fal-1.
|
|
149
|
-
fal-1.
|
|
145
|
+
fal-1.26.0.dist-info/METADATA,sha256=26YySFcK-VDCQFJkuaWR7xvuVJxFMnggSif6dDj3hwc,4089
|
|
146
|
+
fal-1.26.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
147
|
+
fal-1.26.0.dist-info/entry_points.txt,sha256=32zwTUC1U1E7nSTIGCoANQOQ3I7-qHG5wI6gsVz5pNU,37
|
|
148
|
+
fal-1.26.0.dist-info/top_level.txt,sha256=r257X1L57oJL8_lM0tRrfGuXFwm66i1huwQygbpLmHw,21
|
|
149
|
+
fal-1.26.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|