|
9 | 9 | from google import auth
|
10 | 10 |
|
11 | 11 | from octue.cloud import storage
|
12 |
| -from octue.cloud.events.answer_question import answer_question |
13 |
| -from octue.cloud.events.question import make_question_event |
14 |
| -from octue.cloud.events.replayer import EventReplayer |
15 |
| -from octue.cloud.events.validation import VALID_EVENT_KINDS |
16 |
| -from octue.cloud.pub_sub.bigquery import DEFAULT_EVENT_STORE_TABLE_ID, get_events |
17 |
| -from octue.cloud.pub_sub.service import Service |
18 |
| -from octue.cloud.service_id import create_sruid, get_sruid_parts |
19 | 12 | from octue.cloud.storage import GoogleCloudStorageClient
|
20 |
| -from octue.configuration import ServiceConfiguration |
21 |
| -from octue.definitions import LOCAL_SDK_VERSION, MANIFEST_FILENAME, VALUES_FILENAME |
22 |
| -from octue.exceptions import ServiceAlreadyExists |
| 13 | +from octue.definitions import LOCAL_SDK_VERSION |
23 | 14 | from octue.log_handlers import apply_log_handler, get_remote_handler
|
24 |
| -from octue.resources import Child, Manifest, service_backends |
25 |
| -from octue.runner import Runner |
| 15 | +from octue.resources import Manifest |
| 16 | +from octue.twined.cloud.events.answer_question import answer_question |
| 17 | +from octue.twined.cloud.events.question import make_question_event |
| 18 | +from octue.twined.cloud.events.replayer import EventReplayer |
| 19 | +from octue.twined.cloud.events.validation import VALID_EVENT_KINDS |
| 20 | +from octue.twined.cloud.pub_sub.bigquery import DEFAULT_EVENT_STORE_TABLE_ID, get_events |
| 21 | +from octue.twined.cloud.pub_sub.service import Service |
| 22 | +from octue.twined.cloud.service_id import create_sruid, get_sruid_parts |
| 23 | +from octue.twined.configuration import ServiceConfiguration |
| 24 | +from octue.twined.definitions import MANIFEST_FILENAME, VALUES_FILENAME |
| 25 | +from octue.twined.exceptions import ServiceAlreadyExists |
| 26 | +from octue.twined.resources import Child, service_backends |
| 27 | +from octue.twined.runner import Runner |
26 | 28 | from octue.utils.decoders import OctueJSONDecoder
|
27 | 29 | from octue.utils.encoders import OctueJSONEncoder
|
28 | 30 |
|
@@ -193,7 +195,7 @@ def remote(sruid, input_values, input_manifest, project_id, asynchronous, servic
|
193 | 195 | def local(input_values, input_manifest, attributes, service_config):
|
194 | 196 | """Ask a question to a local Octue Twined service.
|
195 | 197 |
|
196 |
| - This command is similar to running `octue start` and asking the resulting local service revision a question |
| 198 | + This command is similar to running `octue twined start` and asking the resulting local service revision a question |
197 | 199 | via Pub/Sub. Instead of starting a local Pub/Sub service revision, however, no Pub/Sub subscription or subscriber is
|
198 | 200 | created; the question is instead passed directly to local the service revision without Pub/Sub being involved.
|
199 | 201 | Everything after this runs the same, though, with the service revision emitting any events via Pub/Sub as usual.
|
|
0 commit comments