-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUEUES] Allow jobs created on Component
creation to be passed onto downstream components
#2329
Comments
After discussion with @kartik4949 we may have 2 use-cases:
One idea might be to add 2 parallel components:
|
Solution:
|
To extend the current Add an event_type attribute with possible values: For different event types, include necessary information in the data field, such as:
Before the event is sent to the queue, it should first pass through the EventManager. The EventManager will identify the event type, check if the relevant components trigger jobs, and dispatch the event to the corresponding queue. |
Discussion with @jieguangzhou |
Listener
creation to be passed onto downstream componentsComponent
creation to be passed onto downstream components
Class Event:
Source: (type_id, identifeir)
Dest: (type-id, identifier)
from_type: 'DB' or 'COMPONENT'
event_type: 'InSERT', 'DELETE', etc
'id': [] Example: Startup event of a listener component Source: ('listener', 'my_listener')
Dest: ('listener', 'my_listener')
from_type: 'COMPONENT'
event_type: 'InSERT'
'id': [1, 2, 3, 4, 5, ...] Example: Database event i.e insert Source: ('table', 'my_table')
Dest: ('listener', 'my_listener')
from_type: 'DB'
event_type: 'InSERT'
'id': 6
refer: VectorIndex or Listener |
This explanation is nice. But I need an explanation which isn't specific to |
I think that we should handle the jobs in a similar way as we did before: We need 3 types of events:
|
Explanation
listener1
creates featuresdim_reduce_model
trains on those featureslistener2
creates features after the training is completeThe text was updated successfully, but these errors were encountered: