memra 0.2.10__py3-none-any.whl → 0.2.12__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.
- memra/__init__.py +1 -1
- memra/cli.py +21 -2
- {memra-0.2.10.dist-info → memra-0.2.12.dist-info}/METADATA +1 -1
- {memra-0.2.10.dist-info → memra-0.2.12.dist-info}/RECORD +8 -8
- {memra-0.2.10.dist-info → memra-0.2.12.dist-info}/WHEEL +0 -0
- {memra-0.2.10.dist-info → memra-0.2.12.dist-info}/entry_points.txt +0 -0
- {memra-0.2.10.dist-info → memra-0.2.12.dist-info}/licenses/LICENSE +0 -0
- {memra-0.2.10.dist-info → memra-0.2.12.dist-info}/top_level.txt +0 -0
memra/__init__.py
CHANGED
memra/cli.py
CHANGED
@@ -351,9 +351,23 @@ def wait_for_services():
|
|
351
351
|
"""Wait for services to be ready"""
|
352
352
|
print("⏳ Waiting for PostgreSQL to be ready...")
|
353
353
|
|
354
|
-
# Wait for PostgreSQL
|
354
|
+
# Wait for PostgreSQL - try both possible container names
|
355
355
|
for i in range(30): # Wait up to 30 seconds
|
356
356
|
try:
|
357
|
+
# Try the memra-ops container name first
|
358
|
+
result = subprocess.run([
|
359
|
+
'docker', 'exec', 'memra-ops_postgres_1',
|
360
|
+
'pg_isready', '-U', 'postgres', '-d', 'local_workflow'
|
361
|
+
], capture_output=True, text=True)
|
362
|
+
|
363
|
+
if result.returncode == 0:
|
364
|
+
print("✅ PostgreSQL is ready")
|
365
|
+
break
|
366
|
+
except:
|
367
|
+
pass
|
368
|
+
|
369
|
+
try:
|
370
|
+
# Fallback to the old container name
|
357
371
|
result = subprocess.run([
|
358
372
|
'docker', 'exec', 'memra_postgres',
|
359
373
|
'pg_isready', '-U', 'postgres', '-d', 'local_workflow'
|
@@ -378,7 +392,8 @@ def run_etl_workflow(demo_dir):
|
|
378
392
|
real_demo_script = demo_dir / "etl_invoice_demo.py"
|
379
393
|
if real_demo_script.exists():
|
380
394
|
print("🎯 Running real ETL workflow...")
|
381
|
-
|
395
|
+
print("⏱️ Processing 15 files with delays - this may take 10-15 minutes")
|
396
|
+
result = subprocess.run([sys.executable, str(real_demo_script)], cwd=demo_dir, timeout=1800) # 30 minute timeout
|
382
397
|
return result.returncode == 0
|
383
398
|
else:
|
384
399
|
# Fallback to simplified demo
|
@@ -391,6 +406,10 @@ def run_etl_workflow(demo_dir):
|
|
391
406
|
print("❌ No demo script found")
|
392
407
|
return False
|
393
408
|
|
409
|
+
except subprocess.TimeoutExpired:
|
410
|
+
print("⏰ ETL workflow timed out after 30 minutes")
|
411
|
+
print("This is normal for large batches - the demo processes 15 files with delays")
|
412
|
+
return False
|
394
413
|
except Exception as e:
|
395
414
|
print(f"❌ Error running ETL workflow: {e}")
|
396
415
|
return False
|
@@ -1,12 +1,12 @@
|
|
1
|
-
memra/__init__.py,sha256=
|
2
|
-
memra/cli.py,sha256=
|
1
|
+
memra/__init__.py,sha256=6i82jodsWZPgtRhUaDF3wuQuRDSaboIpew8D3zDN__s,1109
|
2
|
+
memra/cli.py,sha256=JI58HL4NQkWuDoJt0YHE9ikmNVSVlv1H2e5CQO4Jq8E,15736
|
3
3
|
memra/discovery.py,sha256=yJIQnrDQu1nyzKykCIuzG_5SW5dIXHCEBLLKRWacIoY,480
|
4
4
|
memra/discovery_client.py,sha256=AbnKn6qhyrf7vmOvknEeDzH4tiGHsqPHtDaein_qaW0,1271
|
5
5
|
memra/execution.py,sha256=OXpBKxwBIjhACWL_qh8KHNndO8HUgB6gBF81AiQBBm0,34751
|
6
6
|
memra/models.py,sha256=3KvjPCaMFGIvI017AIHS23jGnEBZdKHspe1Fp8w0xa0,3418
|
7
7
|
memra/tool_registry.py,sha256=PDuWtiX_LX-vhKnx4JeL_ndUwG-oJ6bdhGe6iQeCDBw,15361
|
8
8
|
memra/tool_registry_client.py,sha256=dPIj6DMS5wdu99XmVm-NQYHKH_m6nsknCh4C_imTFig,4009
|
9
|
-
memra-0.2.
|
9
|
+
memra-0.2.12.dist-info/licenses/LICENSE,sha256=8OrnTd8DWwLWmUEj5srSLvT4PREfW1Qo1T5gEUIHPws,1062
|
10
10
|
memra-ops/app.py,sha256=S8B82gOAuT9x-NhmVLL9HM03Pde3Fa7QXm6TG1PEbbU,29439
|
11
11
|
memra-ops/config.py,sha256=6mBbS_stoEIhJDBqdJOalryAnyWeHbDy81mU1j08ids,969
|
12
12
|
memra-ops/mcp_bridge_server.py,sha256=tDEigRstIEAEu16F1ctCor2ny9CBbEOMY046bHdzFpE,47607
|
@@ -61,8 +61,8 @@ memra-workflows/propane_delivery/propane_delivery.py,sha256=ryvIxDjM9GJY9T6fFIqJ
|
|
61
61
|
memra-workflows/text_to_sql/complete_invoice_workflow_with_queries.py,sha256=x4wq3o_ogFnnrI6MQwEhqIiNH-NNwS5SXQUoKd_br7U,7428
|
62
62
|
memra-workflows/text_to_sql/complete_text_to_sql_system.py,sha256=Izj4ucXDXTWFY29SWr2YrEf3ZyXH4QCDEljNk4jlpI0,8991
|
63
63
|
memra-workflows/text_to_sql/file_discovery_demo.py,sha256=4R_QN0Y6OtHmnX6CvtwDXen122XCDrk-MRBOzxb_x_k,5306
|
64
|
-
memra-0.2.
|
65
|
-
memra-0.2.
|
66
|
-
memra-0.2.
|
67
|
-
memra-0.2.
|
68
|
-
memra-0.2.
|
64
|
+
memra-0.2.12.dist-info/METADATA,sha256=pzYK7LdY2hVZrDs2Wy-bQcxqCw1aBiGVpp-TxU8eWUs,10737
|
65
|
+
memra-0.2.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
66
|
+
memra-0.2.12.dist-info/entry_points.txt,sha256=LBVjwWoxWJRzNLgeByPn6xUvWFIRnqnemvAZgIoSt08,41
|
67
|
+
memra-0.2.12.dist-info/top_level.txt,sha256=IviXF9qSQY_BidRYund9zFaV-q1VMl6CuizwTAggQks,42
|
68
|
+
memra-0.2.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|