-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path3.10.0.yml
2748 lines (2682 loc) · 78.7 KB
/
3.10.0.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
name: Jina
description: Build cross-modal and multi-modal applications on the cloud
license: Apache 2.0
vendor: Jina AI Limited
source: https://github.com/jina-ai/jina/tree/master
url: https://jina.ai
docs: https://docs.jina.ai
authors: dev-team@jina.ai
version: 3.10.0
methods:
- name: executor
options:
- help: "\n The name of this object.\n\n This will be used in the following\
\ places:\n - how you refer to this object in Python/YAML/CLI\n - visualization\n\
\ - log message header\n - ...\n\n When not given, then the default\
\ naming strategy will apply.\n "
choices: null
default: null
required: false
option_strings:
- --name
type: str
default_random: false
name: name
- help: The working directory for any IO operations in this object. If not set,
then derive from its parent `workspace`.
choices: null
default: null
required: false
option_strings:
- --workspace
type: str
default_random: false
name: workspace
- help: The YAML config of the logger used in this object.
choices: null
default: default
required: false
option_strings:
- --log-config
type: str
default_random: false
name: log_config
- help: If set, then no log will be emitted from this object.
choices: null
default: false
required: false
option_strings:
- --quiet
type: bool
default_random: false
name: quiet
- help: If set, then exception stack information will not be added to the log
choices: null
default: false
required: false
option_strings:
- --quiet-error
type: bool
default_random: false
name: quiet_error
- help: The timeout in milliseconds of the control request, -1 for waiting forever
choices: null
default: 60
required: false
option_strings:
- --timeout-ctrl
type: int
default_random: false
name: timeout_ctrl
- help: "\n The polling strategy of the Deployment and its endpoints (when `shards>1`).\n\
\ Can be defined for all endpoints of a Deployment or by endpoint.\n Define\
\ per Deployment:\n - ANY: only one (whoever is idle) Pod polls the message\n\
\ - ALL: all Pods poll the message (like a broadcast)\n Define per Endpoint:\n\
\ JSON dict, {endpoint: PollingType}\n {'/custom': 'ALL', '/search': 'ANY',\
\ '*': 'ANY'}\n \n "
choices: null
default: ANY
required: false
option_strings:
- --polling
type: str
default_random: false
name: polling
- help: "\n The config of the executor, it could be one of the followings:\n\
\ * the string literal of an Executor class name\n * an Executor\
\ YAML file (.yml, .yaml, .jaml)\n * a Jina Hub Executor (must start\
\ with `jinahub://` or `jinahub+docker://`)\n * a docker image (must\
\ start with `docker://`)\n * the string literal of a YAML config (must\
\ start with `!` or `jtype: `)\n * the string literal of a JSON config\n\
\n When use it under Python, one can use the following values additionally:\n\
\ - a Python dict that represents the config\n - a text file stream\
\ has `.read()` interface\n "
choices: null
default: BaseExecutor
required: false
option_strings:
- --uses
type: str
default_random: false
name: uses
- help: "\n Dictionary of keyword arguments that will override the `with` configuration\
\ in `uses`\n "
choices: null
default: null
required: false
option_strings:
- --uses-with
type: dict
default_random: false
name: uses_with
- help: "\n Dictionary of keyword arguments that will override the `metas` configuration\
\ in `uses`\n "
choices: null
default: null
required: false
option_strings:
- --uses-metas
type: dict
default_random: false
name: uses_metas
- help: "\n Dictionary of keyword arguments that will override the `requests`\
\ configuration in `uses`\n "
choices: null
default: null
required: false
option_strings:
- --uses-requests
type: dict
default_random: false
name: uses_requests
- help: '
The customized python modules need to be imported before loading the executor
Note that the recommended way is to only import a single module - a simple python
file, if your
executor can be defined in a single file, or an ``__init__.py`` file if you
have multiple files,
which should be structured as a python package. For more details, please see
the
`Executor cookbook <https://docs.jina.ai/fundamentals/executor/executor-files/>`__
'
choices: null
default: null
required: false
option_strings:
- --py-modules
type: typing.List[str]
default_random: false
name: py_modules
- help: The port for input data to bind to, default a random port between [49152,
65535]
choices: null
default: 49654
required: false
option_strings:
- --port-in
type: int
default_random: true
default_factory: random_port
name: port
- help: The host address for binding to, by default it is 0.0.0.0
choices: null
default: 0.0.0.0
required: false
option_strings:
- --host-in
type: str
default_random: false
name: host_in
- help: If set, only native Executors is allowed, and the Executor is always run
inside WorkerRuntime.
choices: null
default: false
required: false
option_strings:
- --native
type: bool
default_random: false
name: native
- help: "\nThe type of array `tensor` and `embedding` will be serialized to.\n\n\
Supports the same types as `docarray.to_protobuf(.., ndarray_type=...)`, which\
\ can be found \n`here <https://docarray.jina.ai/fundamentals/document/serialization/#from-to-protobuf>`.\n\
Defaults to retaining whatever type is returned by the Executor.\n"
choices: null
default: null
required: false
option_strings:
- --output-array-type
type: str
default_random: false
name: output_array_type
- help: 'Dictionary of kwargs arguments that will be passed to the grpc server as
options when starting the server, example : {''grpc.max_send_message_length'':
-1}'
choices: null
default: null
required: false
option_strings:
- --grpc-server-options
type: dict
default_random: false
name: grpc_server_options
- help: List of exceptions that will cause the Executor to shut down.
choices: null
default: []
required: false
option_strings:
- --exit-on-exceptions
type: typing.List[str]
default_random: false
name: exit_on_exceptions
- help: The entrypoint command overrides the ENTRYPOINT in Docker image. when not
set then the Docker image ENTRYPOINT takes effective.
choices: null
default: null
required: false
option_strings:
- --entrypoint
type: str
default_random: false
name: entrypoint
- help: "\nDictionary of kwargs arguments that will be passed to Docker SDK when\
\ starting the docker '\ncontainer. \n\nMore details can be found in the Docker\
\ SDK docs: https://docker-py.readthedocs.io/en/stable/\n\n"
choices: null
default: null
required: false
option_strings:
- --docker-kwargs
type: dict
default_random: false
name: docker_kwargs
- help: "\nThe path on the host to be mounted inside the container. \n\nNote, \n\
- If separated by `:`, then the first part will be considered as the local host\
\ path and the second part is the path in the container system. \n- If no split\
\ provided, then the basename of that directory will be mounted into container's\
\ root path, e.g. `--volumes=\"/user/test/my-workspace\"` will be mounted into\
\ `/my-workspace` inside the container. \n- All volumes are mounted with read-write\
\ mode.\n"
choices: null
default: null
required: false
option_strings:
- --volumes
type: typing.List[str]
default_random: false
name: volumes
- help: "\n This argument allows dockerized Jina executor discover local gpu\
\ devices.\n\n Note, \n - To access all gpus, use `--gpus all`.\n -\
\ To access multiple gpus, e.g. make use of 2 gpus, use `--gpus 2`.\n - To\
\ access specified gpus based on device id, use `--gpus device=[YOUR-GPU-DEVICE-ID]`\n\
\ - To access specified gpus based on multiple device id, use `--gpus device=[YOUR-GPU-DEVICE-ID1],device=[YOUR-GPU-DEVICE-ID2]`\n\
\ - To specify more parameters, use `--gpus device=[YOUR-GPU-DEVICE-ID],runtime=nvidia,capabilities=display\n\
\ "
choices: null
default: null
required: false
option_strings:
- --gpus
type: str
default_random: false
name: gpus
- help: Do not automatically mount a volume for dockerized Executors.
choices: null
default: false
required: false
option_strings:
- --disable-auto-volume
type: bool
default_random: false
name: disable_auto_volume
- help: The host address of the runtime, by default it is 0.0.0.0.
choices: null
default: 0.0.0.0
required: false
option_strings:
- --host
type: str
default_random: false
name: host
- help: Do not display the streaming of remote logs on local console
choices: null
default: false
required: false
option_strings:
- --quiet-remote-logs
type: bool
default_random: false
name: quiet_remote_logs
- help: '
The files on the host to be uploaded to the remote
workspace. This can be useful when your Deployment has more
file dependencies beyond a single YAML file, e.g.
Python files, data files.
Note,
- currently only flatten structure is supported, which means if you upload `[./foo/a.py,
./foo/b.pp, ./bar/c.yml]`, then they will be put under the _same_ workspace
on the remote, losing all hierarchies.
- by default, `--uses` YAML file is always uploaded.
- uploaded files are by default isolated across the runs. To ensure files are
submitted to the same workspace across different runs, use `--workspace-id`
to specify the workspace.
'
choices: null
default: null
required: false
option_strings:
- --upload-files
type: typing.List[str]
default_random: false
name: upload_files
- help: The runtime class to run inside the Pod
choices: null
default: WorkerRuntime
required: false
option_strings:
- --runtime-cls
type: str
default_random: false
name: runtime_cls
- help: The timeout in milliseconds of a Pod waits for the runtime to be ready,
-1 for waiting forever
choices: null
default: 600000
required: false
option_strings:
- --timeout-ready
type: int
default_random: false
name: timeout_ready
- help: The map of environment variables that are available inside runtime
choices: null
default: null
required: false
option_strings:
- --env
type: dict
default_random: false
name: env
- help: The number of shards in the deployment running at the same time. For more
details check https://docs.jina.ai/fundamentals/flow/create-flow/#complex-flow-topologies
choices: null
default: 1
required: false
option_strings:
- --shards
type: int
default_random: false
name: shards
- help: The number of replicas in the deployment
choices: null
default: 1
required: false
option_strings:
- --replicas
type: int
default_random: false
name: replicas
- help: The port for input data to bind to, default is a random port between [49152,
65535]
choices: null
default: 52237
required: false
option_strings:
- --port
type: int
default_random: true
default_factory: random_port
name: port
- help: If set, spawn an http server with a prometheus endpoint to expose metrics
choices: null
default: false
required: false
option_strings:
- --monitoring
type: bool
default_random: false
name: monitoring
- help: The port on which the prometheus server is exposed, default is a random
port between [49152, 65535]
choices: null
default: '62204'
required: false
option_strings:
- --port-monitoring
type: str
default_random: true
default_factory: random_identity
name: port_monitoring
- help: Number of retries per gRPC call. If <0 it defaults to max(3, num_replicas)
choices: null
default: -1
required: false
option_strings:
- --retries
type: int
default_random: false
name: retries
- help: If set, the current Pod/Deployment can not be further chained, and the next
`.add()` will chain after the last Pod/Deployment not this current one.
choices: null
default: false
required: false
option_strings:
- --floating
type: bool
default_random: false
name: floating
- help: If set, install `requirements.txt` in the Hub Executor bundle to local
choices: null
default: false
required: false
option_strings:
- --install-requirements
type: bool
default_random: false
name: install_requirements
- help: If set, always pull the latest Hub Executor bundle even it exists on local
choices: null
default: false
required: false
option_strings:
- --force-update
- --force
type: bool
default_random: false
name: force_update
- help: The compression mechanism used when sending requests from the Head to the
WorkerRuntimes. For more details, check https://grpc.github.io/grpc/python/grpc.html#compression.
choices:
- NoCompression
- Deflate
- Gzip
default: null
required: false
option_strings:
- --compression
type: str
default_random: false
name: compression
- help: The address of the uses-before runtime
choices: null
default: null
required: false
option_strings:
- --uses-before-address
type: str
default_random: false
name: uses_before_address
- help: The address of the uses-before runtime
choices: null
default: null
required: false
option_strings:
- --uses-after-address
type: str
default_random: false
name: uses_after_address
- help: dictionary JSON with a list of connections to configure
choices: null
default: null
required: false
option_strings:
- --connection-list
type: str
default_random: false
name: connection_list
- help: Disable the built-in reduce mechanism, set this if the reduction is to be
handled by the Executor connected to this Head
choices: null
default: false
required: false
option_strings:
- --disable-reduce
type: bool
default_random: false
name: disable_reduce
- help: The timeout in milliseconds used when sending data requests to Executors,
-1 means no timeout, disabled by default
choices: null
default: null
required: false
option_strings:
- --timeout-send
type: int
default_random: false
name: timeout_send
help: Start an Executor. Executor is how Jina processes Document.
- name: flow
options:
- help: "\n The name of this object.\n\n This will be used in the following\
\ places:\n - how you refer to this object in Python/YAML/CLI\n - visualization\n\
\ - log message header\n - ...\n\n When not given, then the default\
\ naming strategy will apply.\n "
choices: null
default: null
required: false
option_strings:
- --name
type: str
default_random: false
name: name
- help: The working directory for any IO operations in this object. If not set,
then derive from its parent `workspace`.
choices: null
default: null
required: false
option_strings:
- --workspace
type: str
default_random: false
name: workspace
- help: The YAML config of the logger used in this object.
choices: null
default: default
required: false
option_strings:
- --log-config
type: str
default_random: false
name: log_config
- help: If set, then no log will be emitted from this object.
choices: null
default: false
required: false
option_strings:
- --quiet
type: bool
default_random: false
name: quiet
- help: If set, then exception stack information will not be added to the log
choices: null
default: false
required: false
option_strings:
- --quiet-error
type: bool
default_random: false
name: quiet_error
- help: The YAML path represents a flow. It can be either a local file path or a
URL.
choices: null
default: null
required: false
option_strings:
- --uses
type: str
default_random: false
name: uses
- help: The map of environment variables that are available inside runtime
choices: null
default: null
required: false
option_strings:
- --env
type: dict
default_random: false
name: env
- help: "\n The strategy on those inspect deployments in the flow.\n\n If\
\ `REMOVE` is given then all inspect deployments are removed when building the\
\ flow.\n "
choices:
- HANG
- REMOVE
- COLLECT
default: COLLECT
required: false
option_strings:
- --inspect
type: str
default_random: false
name: inspect
help: Start a Flow. Flow is how Jina streamlines and distributes Executors.
- name: ping
options:
- help: The target type to ping. For `executor` and `gateway`, checks the readiness
of the individual service. For `flow` it checks the connectivity of the complete
microservice architecture.
choices:
- flow
- executor
- gateway
default: executor
required: true
option_strings: []
type: str
default_random: false
name: target
- help: The host address with port of a target Executor, Gateway or a Flow, e.g.
0.0.0.0:8000. For Flow or Gateway, host can also indicate the protocol, grpc
will be used if not provided, e.g http://0.0.0.0:8000
choices: null
default: null
required: true
option_strings: []
type: str
default_random: false
name: host
- help: '
Timeout in millisecond of one check
-1 for waiting forever
'
choices: null
default: 3000
required: false
option_strings:
- --timeout
type: int
default_random: false
name: timeout
- help: The number of readiness checks to perform
choices: null
default: 1
required: false
option_strings:
- --attempts
type: int
default_random: false
name: attempts
- help: The minimum number of successful readiness checks, before exiting successfully
with exit(0)
choices: null
default: 1
required: false
option_strings:
- --min-successful-attempts
type: int
default_random: false
name: min_successful_attempts
help: Ping a remote Executor or a Flow.
- name: export
options: []
help: Export Jina API and Flow to JSONSchema, Kubernetes YAML, or SVG flowchart.
methods:
- name: flowchart
options:
- help: The input file path of a Flow YAML
choices: null
default: null
required: true
option_strings: []
type: str
default_random: false
name: flowpath
- help: The output path
choices: null
default: null
required: true
option_strings: []
type: str
default_random: false
name: outpath
- help: If set, then the flowchart is rendered vertically from top to down.
choices: null
default: false
required: false
option_strings:
- --vertical-layout
type: bool
default_random: false
name: vertical_layout
help: null
- name: kubernetes
options:
- help: The input file path of a Flow YAML
choices: null
default: null
required: true
option_strings: []
type: str
default_random: false
name: flowpath
- help: The output path
choices: null
default: null
required: true
option_strings: []
type: str
default_random: false
name: outpath
- help: The name of the k8s namespace to set for the configurations. If None,
the name of the Flow will be used.
choices: null
default: null
required: false
option_strings:
- --k8s-namespace
type: str
default_random: false
name: k8s_namespace
help: null
- name: docker-compose
options:
- help: The input file path of a Flow YAML
choices: null
default: null
required: true
option_strings: []
type: str
default_random: false
name: flowpath
- help: The output path
choices: null
default: null
required: true
option_strings: []
type: str
default_random: false
name: outpath
- help: The name of the network that will be used by the deployment name.
choices: null
default: null
required: false
option_strings:
- --network_name
type: str
default_random: false
name: network_name
help: null
- name: schema
options:
- help: The YAML file path for storing the exported API
choices: null
default: null
required: false
option_strings:
- --yaml-path
type: typing.List[str]
default_random: false
name: yaml_path
- help: The JSON file path for storing the exported API
choices: null
default: null
required: false
option_strings:
- --json-path
type: typing.List[str]
default_random: false
name: json_path
- help: The JSONSchema file path for storing the exported API
choices: null
default: null
required: false
option_strings:
- --schema-path
type: typing.List[str]
default_random: false
name: schema_path
help: null
- name: new
options:
- help: The name of the project
choices: null
default: hello-jina
required: true
option_strings: []
type: str
default_random: false
name: name
help: Create a new Jina toy project with the predefined template.
- name: gateway
options:
- help: "\n The name of this object.\n\n This will be used in the following\
\ places:\n - how you refer to this object in Python/YAML/CLI\n - visualization\n\
\ - log message header\n - ...\n\n When not given, then the default\
\ naming strategy will apply.\n "
choices: null
default: gateway
required: false
option_strings:
- --name
type: str
default_random: false
name: name
- help: The working directory for any IO operations in this object. If not set,
then derive from its parent `workspace`.
choices: null
default: null
required: false
option_strings:
- --workspace
type: str
default_random: false
name: workspace
- help: The YAML config of the logger used in this object.
choices: null
default: default
required: false
option_strings:
- --log-config
type: str
default_random: false
name: log_config
- help: If set, then no log will be emitted from this object.
choices: null
default: false
required: false
option_strings:
- --quiet
type: bool
default_random: false
name: quiet
- help: If set, then exception stack information will not be added to the log
choices: null
default: false
required: false
option_strings:
- --quiet-error
type: bool
default_random: false
name: quiet_error
- help: The timeout in milliseconds of the control request, -1 for waiting forever
choices: null
default: 60
required: false
option_strings:
- --timeout-ctrl
type: int
default_random: false
name: timeout_ctrl
- help: "\n The polling strategy of the Deployment and its endpoints (when `shards>1`).\n\
\ Can be defined for all endpoints of a Deployment or by endpoint.\n Define\
\ per Deployment:\n - ANY: only one (whoever is idle) Pod polls the message\n\
\ - ALL: all Pods poll the message (like a broadcast)\n Define per Endpoint:\n\
\ JSON dict, {endpoint: PollingType}\n {'/custom': 'ALL', '/search': 'ANY',\
\ '*': 'ANY'}\n \n "
choices: null
default: ANY
required: false
option_strings:
- --polling
type: str
default_random: false
name: polling
- help: "\n The config of the executor, it could be one of the followings:\n\
\ * the string literal of an Executor class name\n * an Executor\
\ YAML file (.yml, .yaml, .jaml)\n * a Jina Hub Executor (must start\
\ with `jinahub://` or `jinahub+docker://`)\n * a docker image (must\
\ start with `docker://`)\n * the string literal of a YAML config (must\
\ start with `!` or `jtype: `)\n * the string literal of a JSON config\n\
\n When use it under Python, one can use the following values additionally:\n\
\ - a Python dict that represents the config\n - a text file stream\
\ has `.read()` interface\n "
choices: null
default: BaseExecutor
required: false
option_strings:
- --uses
type: str
default_random: false
name: uses
- help: "\n Dictionary of keyword arguments that will override the `with` configuration\
\ in `uses`\n "
choices: null
default: null
required: false
option_strings:
- --uses-with
type: dict
default_random: false
name: uses_with
- help: "\n Dictionary of keyword arguments that will override the `metas` configuration\
\ in `uses`\n "
choices: null
default: null
required: false
option_strings:
- --uses-metas
type: dict
default_random: false
name: uses_metas
- help: "\n Dictionary of keyword arguments that will override the `requests`\
\ configuration in `uses`\n "
choices: null
default: null
required: false
option_strings:
- --uses-requests
type: dict
default_random: false
name: uses_requests
- help: '
The customized python modules need to be imported before loading the executor
Note that the recommended way is to only import a single module - a simple python
file, if your
executor can be defined in a single file, or an ``__init__.py`` file if you
have multiple files,
which should be structured as a python package. For more details, please see
the
`Executor cookbook <https://docs.jina.ai/fundamentals/executor/executor-files/>`__
'
choices: null
default: null
required: false
option_strings:
- --py-modules
type: typing.List[str]
default_random: false
name: py_modules
- help: The port for input data to bind to, default a random port between [49152,
65535]
choices: null
default: 50163
required: false
option_strings:
- --port-in
type: int
default_random: true
default_factory: random_port
name: port
- help: The host address for binding to, by default it is 0.0.0.0
choices: null
default: 0.0.0.0
required: false
option_strings:
- --host-in
type: str
default_random: false
name: host_in
- help: If set, only native Executors is allowed, and the Executor is always run
inside WorkerRuntime.
choices: null
default: false
required: false
option_strings:
- --native
type: bool
default_random: false
name: native
- help: "\nThe type of array `tensor` and `embedding` will be serialized to.\n\n\
Supports the same types as `docarray.to_protobuf(.., ndarray_type=...)`, which\
\ can be found \n`here <https://docarray.jina.ai/fundamentals/document/serialization/#from-to-protobuf>`.\n\
Defaults to retaining whatever type is returned by the Executor.\n"
choices: null
default: null
required: false
option_strings:
- --output-array-type
type: str
default_random: false
name: output_array_type
- help: 'Dictionary of kwargs arguments that will be passed to the grpc server as
options when starting the server, example : {''grpc.max_send_message_length'':
-1}'
choices: null
default: null
required: false
option_strings:
- --grpc-server-options
type: dict
default_random: false
name: grpc_server_options
- help: List of exceptions that will cause the Executor to shut down.
choices: null
default: []
required: false
option_strings:
- --exit-on-exceptions
type: typing.List[str]
default_random: false
name: exit_on_exceptions
- help: "\n Number of requests fetched from the client before feeding into the\
\ first Executor. \n \n Used to control the speed of data input into a\
\ Flow. 0 disables prefetch (1000 requests is the default)"
choices: null
default: 1000
required: false
option_strings:
- --prefetch
type: int
default_random: false
name: prefetch
- help: The title of this HTTP server. It will be used in automatics docs such as