trustgraph-cli 2.2.13__tar.gz → 2.2.15__tar.gz
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.
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/PKG-INFO +1 -1
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/dump_queues.py +17 -34
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/init_trustgraph.py +1 -1
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/monitor_prompts.py +40 -52
- trustgraph_cli-2.2.15/trustgraph/cli_version.py +1 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph_cli.egg-info/PKG-INFO +1 -1
- trustgraph_cli-2.2.13/trustgraph/cli_version.py +0 -1
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/README.md +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/pyproject.toml +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/setup.cfg +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/__init__.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/add_library_document.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/delete_collection.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/delete_config_item.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/delete_flow_blueprint.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/delete_kg_core.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/delete_mcp_tool.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/delete_tool.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/dump_msgpack.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/get_config_item.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/get_document_content.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/get_flow_blueprint.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/get_kg_core.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/graph_to_turtle.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/init_pulsar_manager.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_agent.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_document_embeddings.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_document_rag.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_embeddings.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_graph_embeddings.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_graph_rag.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_llm.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_mcp_tool.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_nlp_query.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_prompt.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_row_embeddings.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_rows_query.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_structured_query.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/list_collections.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/list_config_items.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/list_explain_traces.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/load_doc_embeds.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/load_kg_core.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/load_knowledge.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/load_sample_documents.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/load_structured_data.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/load_turtle.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/put_config_item.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/put_flow_blueprint.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/put_kg_core.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/query_graph.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/remove_library_document.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/save_doc_embeds.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/set_collection.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/set_mcp_tool.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/set_prompt.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/set_token_costs.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/set_tool.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_config.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_explain_trace.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_extraction_provenance.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_flow_blueprints.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_flow_state.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_flows.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_graph.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_kg_cores.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_library_documents.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_library_processing.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_mcp_tools.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_parameter_types.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_processor_state.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_prompts.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_token_costs.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_token_rate.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_tools.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/start_flow.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/start_library_processing.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/stop_flow.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/stop_library_processing.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/unload_kg_core.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/verify_system_status.py +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph_cli.egg-info/SOURCES.txt +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph_cli.egg-info/dependency_links.txt +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph_cli.egg-info/entry_points.txt +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph_cli.egg-info/requires.txt +0 -0
- {trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.15
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -8,8 +8,6 @@ message flows, diagnosing stuck services, and understanding system behavior.
|
|
|
8
8
|
Uses TrustGraph's Subscriber abstraction for future-proof pub/sub compatibility.
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
|
-
import pulsar
|
|
12
|
-
from pulsar.schema import BytesSchema
|
|
13
11
|
import sys
|
|
14
12
|
import json
|
|
15
13
|
import asyncio
|
|
@@ -17,7 +15,7 @@ from datetime import datetime
|
|
|
17
15
|
import argparse
|
|
18
16
|
|
|
19
17
|
from trustgraph.base.subscriber import Subscriber
|
|
20
|
-
from trustgraph.base.pubsub import get_pubsub
|
|
18
|
+
from trustgraph.base.pubsub import get_pubsub, add_pubsub_args
|
|
21
19
|
|
|
22
20
|
def decode_json_strings(obj):
|
|
23
21
|
"""Recursively decode JSON-encoded string values within a dict/list."""
|
|
@@ -172,15 +170,13 @@ async def log_writer(central_queue, file_handle, shutdown_event, console_output=
|
|
|
172
170
|
break
|
|
173
171
|
|
|
174
172
|
|
|
175
|
-
async def async_main(queues, output_file,
|
|
173
|
+
async def async_main(queues, output_file, subscriber_name, append_mode, **pubsub_config):
|
|
176
174
|
"""
|
|
177
175
|
Main async function to monitor multiple queues concurrently.
|
|
178
176
|
|
|
179
177
|
Args:
|
|
180
178
|
queues: List of queue names to monitor
|
|
181
179
|
output_file: Path to output file
|
|
182
|
-
pulsar_host: Pulsar connection URL
|
|
183
|
-
listener_name: Pulsar listener name
|
|
184
180
|
subscriber_name: Base name for subscribers
|
|
185
181
|
append_mode: Whether to append to existing file
|
|
186
182
|
"""
|
|
@@ -194,9 +190,9 @@ async def async_main(queues, output_file, pulsar_host, listener_name, subscriber
|
|
|
194
190
|
|
|
195
191
|
# Create backend connection
|
|
196
192
|
try:
|
|
197
|
-
backend = get_pubsub(
|
|
193
|
+
backend = get_pubsub(**pubsub_config)
|
|
198
194
|
except Exception as e:
|
|
199
|
-
print(f"Error connecting to backend
|
|
195
|
+
print(f"Error connecting to backend: {e}", file=sys.stderr)
|
|
200
196
|
sys.exit(1)
|
|
201
197
|
|
|
202
198
|
# Create Subscribers and central queue
|
|
@@ -291,25 +287,20 @@ def main():
|
|
|
291
287
|
description='Monitor and dump messages from multiple Pulsar queues',
|
|
292
288
|
epilog="""
|
|
293
289
|
Examples:
|
|
294
|
-
# Monitor agent and prompt queues
|
|
295
|
-
tg-dump-queues
|
|
296
|
-
|
|
290
|
+
# Monitor agent and prompt flow queues
|
|
291
|
+
tg-dump-queues flow:tg:agent-request:default \\
|
|
292
|
+
flow:tg:prompt-request:default
|
|
297
293
|
|
|
298
294
|
# Monitor with custom output file
|
|
299
|
-
tg-dump-queues
|
|
295
|
+
tg-dump-queues flow:tg:agent-request:default \\
|
|
300
296
|
--output debug.log
|
|
301
297
|
|
|
302
298
|
# Append to existing log file
|
|
303
|
-
tg-dump-queues
|
|
299
|
+
tg-dump-queues flow:tg:agent-request:default \\
|
|
304
300
|
--output queue.log --append
|
|
305
301
|
|
|
306
|
-
|
|
307
|
-
-
|
|
308
|
-
- Agent responses: non-persistent://tg/response/agent:default
|
|
309
|
-
- Prompt requests: non-persistent://tg/request/prompt:default
|
|
310
|
-
- Prompt responses: non-persistent://tg/response/prompt:default
|
|
311
|
-
- LLM requests: non-persistent://tg/request/text-completion:default
|
|
312
|
-
- LLM responses: non-persistent://tg/response/text-completion:default
|
|
302
|
+
# Raw Pulsar URIs also accepted
|
|
303
|
+
tg-dump-queues persistent://tg/flow/agent-request:default
|
|
313
304
|
|
|
314
305
|
IMPORTANT:
|
|
315
306
|
This tool subscribes to queues without a schema (schema-less mode). To avoid
|
|
@@ -340,17 +331,7 @@ IMPORTANT:
|
|
|
340
331
|
help='Append to output file instead of overwriting'
|
|
341
332
|
)
|
|
342
333
|
|
|
343
|
-
parser
|
|
344
|
-
'--pulsar-host',
|
|
345
|
-
default='pulsar://localhost:6650',
|
|
346
|
-
help='Pulsar host URL (default: pulsar://localhost:6650)'
|
|
347
|
-
)
|
|
348
|
-
|
|
349
|
-
parser.add_argument(
|
|
350
|
-
'--listener-name',
|
|
351
|
-
default='localhost',
|
|
352
|
-
help='Pulsar listener name (default: localhost)'
|
|
353
|
-
)
|
|
334
|
+
add_pubsub_args(parser, standalone=True)
|
|
354
335
|
|
|
355
336
|
parser.add_argument(
|
|
356
337
|
'--subscriber',
|
|
@@ -371,10 +352,12 @@ IMPORTANT:
|
|
|
371
352
|
asyncio.run(async_main(
|
|
372
353
|
queues=queues,
|
|
373
354
|
output_file=args.output,
|
|
374
|
-
pulsar_host=args.pulsar_host,
|
|
375
|
-
listener_name=args.listener_name,
|
|
376
355
|
subscriber_name=args.subscriber,
|
|
377
|
-
append_mode=args.append
|
|
356
|
+
append_mode=args.append,
|
|
357
|
+
pubsub_backend=args.pubsub_backend,
|
|
358
|
+
pulsar_host=args.pulsar_host,
|
|
359
|
+
pulsar_api_key=args.pulsar_api_key,
|
|
360
|
+
pulsar_listener=args.pulsar_listener,
|
|
378
361
|
))
|
|
379
362
|
except KeyboardInterrupt:
|
|
380
363
|
# Already handled in async_main
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Monitor prompt request/response queues and log activity with timing.
|
|
3
3
|
|
|
4
|
-
Subscribes to prompt request and response
|
|
4
|
+
Subscribes to prompt request and response queues, correlates
|
|
5
5
|
them by message ID, and logs a summary of each request/response with
|
|
6
6
|
elapsed time. Streaming responses are accumulated and shown once at
|
|
7
7
|
completion.
|
|
@@ -19,8 +19,7 @@ import argparse
|
|
|
19
19
|
from datetime import datetime
|
|
20
20
|
from collections import OrderedDict
|
|
21
21
|
|
|
22
|
-
import
|
|
23
|
-
from pulsar.schema import BytesSchema
|
|
22
|
+
from trustgraph.base.pubsub import get_pubsub, add_pubsub_args
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
default_flow = "default"
|
|
@@ -85,7 +84,7 @@ def format_terms(terms, max_lines, max_width):
|
|
|
85
84
|
|
|
86
85
|
|
|
87
86
|
def parse_raw_message(msg):
|
|
88
|
-
"""Parse a raw
|
|
87
|
+
"""Parse a raw message into (correlation_id, body_dict)."""
|
|
89
88
|
try:
|
|
90
89
|
props = msg.properties()
|
|
91
90
|
corr_id = props.get("id", "")
|
|
@@ -94,53 +93,46 @@ def parse_raw_message(msg):
|
|
|
94
93
|
|
|
95
94
|
try:
|
|
96
95
|
value = msg.value()
|
|
97
|
-
if isinstance(value,
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
if isinstance(value, dict):
|
|
97
|
+
body = value
|
|
98
|
+
elif isinstance(value, bytes):
|
|
99
|
+
body = json.loads(value.decode("utf-8"))
|
|
100
|
+
elif isinstance(value, str):
|
|
101
|
+
body = json.loads(value)
|
|
102
|
+
else:
|
|
103
|
+
body = {}
|
|
100
104
|
except Exception:
|
|
101
105
|
body = {}
|
|
102
106
|
|
|
103
107
|
return corr_id, body
|
|
104
108
|
|
|
105
109
|
|
|
106
|
-
def
|
|
107
|
-
"""Receive a message with timeout, returning None on timeout."""
|
|
108
|
-
try:
|
|
109
|
-
return consumer.receive(timeout_millis=timeout_ms)
|
|
110
|
-
except Exception:
|
|
111
|
-
return None
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
async def monitor(flow, queue_type, max_lines, max_width,
|
|
115
|
-
pulsar_host, listener_name):
|
|
110
|
+
async def monitor(flow, queue_type, max_lines, max_width, **config):
|
|
116
111
|
|
|
117
|
-
request_queue = f"
|
|
118
|
-
response_queue = f"
|
|
112
|
+
request_queue = f"request:tg:{queue_type}:{flow}"
|
|
113
|
+
response_queue = f"response:tg:{queue_type}:{flow}"
|
|
119
114
|
|
|
120
115
|
print(f"Monitoring prompt queues:")
|
|
121
116
|
print(f" Request: {request_queue}")
|
|
122
117
|
print(f" Response: {response_queue}")
|
|
123
118
|
print(f"Press Ctrl+C to stop\n")
|
|
124
119
|
|
|
125
|
-
|
|
126
|
-
pulsar_host,
|
|
127
|
-
listener_name=listener_name,
|
|
128
|
-
)
|
|
120
|
+
backend = get_pubsub(**config)
|
|
129
121
|
|
|
130
|
-
req_consumer =
|
|
131
|
-
request_queue,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
initial_position=
|
|
122
|
+
req_consumer = backend.create_consumer(
|
|
123
|
+
topic=request_queue,
|
|
124
|
+
subscription="prompt-monitor-req",
|
|
125
|
+
schema=None,
|
|
126
|
+
consumer_type='shared',
|
|
127
|
+
initial_position='latest',
|
|
136
128
|
)
|
|
137
129
|
|
|
138
|
-
resp_consumer =
|
|
139
|
-
response_queue,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
initial_position=
|
|
130
|
+
resp_consumer = backend.create_consumer(
|
|
131
|
+
topic=response_queue,
|
|
132
|
+
subscription="prompt-monitor-resp",
|
|
133
|
+
schema=None,
|
|
134
|
+
consumer_type='shared',
|
|
135
|
+
initial_position='latest',
|
|
144
136
|
)
|
|
145
137
|
|
|
146
138
|
# Track in-flight requests: corr_id -> (timestamp, template_id)
|
|
@@ -156,8 +148,8 @@ async def monitor(flow, queue_type, max_lines, max_width,
|
|
|
156
148
|
got_message = False
|
|
157
149
|
|
|
158
150
|
# Poll request queue
|
|
159
|
-
|
|
160
|
-
|
|
151
|
+
try:
|
|
152
|
+
msg = req_consumer.receive(timeout_millis=100)
|
|
161
153
|
got_message = True
|
|
162
154
|
timestamp = datetime.now()
|
|
163
155
|
corr_id, body = parse_raw_message(msg)
|
|
@@ -182,10 +174,12 @@ async def monitor(flow, queue_type, max_lines, max_width,
|
|
|
182
174
|
print(format_terms(terms, max_lines, max_width))
|
|
183
175
|
|
|
184
176
|
req_consumer.acknowledge(msg)
|
|
177
|
+
except TimeoutError:
|
|
178
|
+
pass
|
|
185
179
|
|
|
186
180
|
# Poll response queue
|
|
187
|
-
|
|
188
|
-
|
|
181
|
+
try:
|
|
182
|
+
msg = resp_consumer.receive(timeout_millis=100)
|
|
189
183
|
got_message = True
|
|
190
184
|
timestamp = datetime.now()
|
|
191
185
|
corr_id, body = parse_raw_message(msg)
|
|
@@ -265,6 +259,8 @@ async def monitor(flow, queue_type, max_lines, max_width,
|
|
|
265
259
|
print(f" {truncated}")
|
|
266
260
|
|
|
267
261
|
resp_consumer.acknowledge(msg)
|
|
262
|
+
except TimeoutError:
|
|
263
|
+
pass
|
|
268
264
|
|
|
269
265
|
if not got_message:
|
|
270
266
|
await asyncio.sleep(0.05)
|
|
@@ -274,7 +270,7 @@ async def monitor(flow, queue_type, max_lines, max_width,
|
|
|
274
270
|
finally:
|
|
275
271
|
req_consumer.close()
|
|
276
272
|
resp_consumer.close()
|
|
277
|
-
|
|
273
|
+
backend.close()
|
|
278
274
|
|
|
279
275
|
|
|
280
276
|
def main():
|
|
@@ -310,17 +306,7 @@ def main():
|
|
|
310
306
|
help=f"Max width per line (default: {default_max_width})",
|
|
311
307
|
)
|
|
312
308
|
|
|
313
|
-
parser
|
|
314
|
-
"--pulsar-host",
|
|
315
|
-
default="pulsar://localhost:6650",
|
|
316
|
-
help="Pulsar host URL (default: pulsar://localhost:6650)",
|
|
317
|
-
)
|
|
318
|
-
|
|
319
|
-
parser.add_argument(
|
|
320
|
-
"--listener-name",
|
|
321
|
-
default="localhost",
|
|
322
|
-
help="Pulsar listener name (default: localhost)",
|
|
323
|
-
)
|
|
309
|
+
add_pubsub_args(parser, standalone=True)
|
|
324
310
|
|
|
325
311
|
args = parser.parse_args()
|
|
326
312
|
|
|
@@ -331,7 +317,9 @@ def main():
|
|
|
331
317
|
max_lines=args.max_lines,
|
|
332
318
|
max_width=args.max_width,
|
|
333
319
|
pulsar_host=args.pulsar_host,
|
|
334
|
-
|
|
320
|
+
pulsar_api_key=args.pulsar_api_key,
|
|
321
|
+
pulsar_listener=args.pulsar_listener,
|
|
322
|
+
pubsub_backend=args.pubsub_backend,
|
|
335
323
|
))
|
|
336
324
|
except KeyboardInterrupt:
|
|
337
325
|
pass
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.15"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.15
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.13"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/invoke_document_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph/cli/show_extraction_provenance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-2.2.13 → trustgraph_cli-2.2.15}/trustgraph_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|