Skip to content

Commit 7bbbe5e

Browse files
authoredMar 11, 2025
Support for Inception (#29)
- Add support for internal chain callback support - Add support for Bulk Entry lookup - Add Inception processor - Enables sub-chain execution with support for fanning out - Toggle callback handling for basic and website archive constructs - Add support for calculating effective_on dates in summary processor - Raise system exception when a construct is not behaving as expected
1 parent 6e4cf3b commit 7bbbe5e

File tree

51 files changed

+1907
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1907
-84
lines changed
 

‎omnilake/api/runtime/request.py

+5-13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"""
44
import logging
55

6+
from uuid import uuid4
7+
68
from da_vinci.core.immutable_object import (
79
ObjectBody,
810
ObjectBodySchema,
@@ -320,22 +322,12 @@ def submit_chain_request(self, request: ObjectBody):
320322

321323
jobs.put(job)
322324

323-
req_dict = request.to_dict()
324-
325-
chain_request_obj = LakeChainRequest(
326-
chain=req_dict['chain'],
327-
job_id=job.job_id,
328-
job_type=job.job_type,
329-
)
330-
331-
chain_requests = LakeChainRequestsClient()
332-
333-
chain_requests.put(chain_request_obj)
325+
chain_request_id = str(uuid4())
334326

335327
event_body = ObjectBody(
336328
body={
337329
"chain": request['chain'],
338-
"chain_request_id": chain_request_obj.chain_request_id,
330+
"chain_request_id": chain_request_id,
339331
"job_id": job.job_id,
340332
"job_type": job.job_type,
341333
},
@@ -353,7 +345,7 @@ def submit_chain_request(self, request: ObjectBody):
353345

354346
return self.respond(
355347
body={
356-
'chain_request_id': chain_request_obj.chain_request_id,
348+
'chain_request_id': chain_request_id,
357349
'job_id': job.job_id,
358350
'job_type': job.job_type,
359351
},

‎omnilake/api/stack.py

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
LakeConstructArchiveWebSiteStack,
4949
)
5050

51+
from omnilake.constructs.processors.inception.stack import (
52+
LakeConstructProcessorInceptionStack,
53+
)
54+
5155
from omnilake.constructs.processors.knowledge_graph.stack import (
5256
LakeConstructProcessorKnowledgeGraphStack,
5357
)
@@ -92,6 +96,7 @@ def __init__(self, app_name: str, app_base_image: str, architecture: str,
9296
LakeConstructArchiveWebSiteStack,
9397
LakeConstructResponderDirectStack,
9498
LakeConstructResponderSimpleStack,
99+
LakeConstructProcessorInceptionStack,
95100
LakeConstructProcessorKnowledgeGraphStack,
96101
LakeConstructProcessorRecursiveSummarizationStack,
97102
LakeConstructResponderWrapStack,

0 commit comments

Comments
 (0)