-
Notifications
You must be signed in to change notification settings - Fork 469
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
Fix/minor bugs #2348
Fix/minor bugs #2348
Conversation
@@ -210,6 +214,8 @@ def schedule_jobs( | |||
ids = db.execute(self.select.select_ids) | |||
ids = [id[self.select.primary_id] for id in ids] | |||
|
|||
# TODO: Check ready ids | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required, will remove the TODO
@override | ||
def post_create(self, db: "Datalayer") -> None: | ||
"""Post-create hook. | ||
|
||
:param db: Data layer instance. | ||
""" | ||
logging.info('Requesting vector index setup on CDC service') | ||
if CFG.cluster.cdc.uri and not is_csn('cdc'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
csn means current service name
this check if the current process is cdc
if yes then donot create a cdc trigger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will this work if the services are in a single server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the function, is_csn
When single server is used via testing
I check for it
superduper/backends/base/compute.py
Outdated
def connect(self, *args, **kwargs): | ||
pass | ||
|
||
def create_handler(self, component_id, compute_kwargs={}): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc-string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
superduper/backends/base/compute.py
Outdated
@@ -85,3 +85,9 @@ def shutdown(self) -> None: | |||
|
|||
def execute_task(self, job_id, dependencies, compute_kwargs={}): | |||
"""Execute task function for distributed backends.""" | |||
|
|||
def connect(self, *args, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc-string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
superduper/base/datalayer.py
Outdated
@@ -195,7 +196,7 @@ def backfill_vector_search(self, vi, searcher): | |||
if s.CFG.cluster.vector_search.type == 'native': | |||
return | |||
|
|||
if s.CFG.cluster.vector_search.uri and not self.server_mode: | |||
if s.CFG.cluster.vector_search.uri and not is_csn('vector_search'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this? Please add comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CSN - current service name
this checks if current process is a vector search server.
superduper/base/datalayer.py
Outdated
@@ -195,7 +196,7 @@ def backfill_vector_search(self, vi, searcher): | |||
if s.CFG.cluster.vector_search.type == 'native': | |||
return | |||
|
|||
if s.CFG.cluster.vector_search.uri and not self.server_mode: | |||
if s.CFG.cluster.vector_search.uri and not is_csn('vector_search'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CSN - current service name
this checks if current process is a vector search server.
@@ -72,21 +72,25 @@ def outputs_select(self): | |||
"""Get select statement for outputs.""" | |||
return self.db[self.select.table].select().outputs(self.predict_id) | |||
|
|||
@property | |||
def cdc_table(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdc table property which returns the component table to be listened by cdc service when added
@override | ||
def post_create(self, db: "Datalayer") -> None: | ||
"""Post-create hook. | ||
|
||
:param db: Data layer instance. | ||
""" | ||
logging.info('Requesting vector index setup on CDC service') | ||
if CFG.cluster.cdc.uri and not is_csn('cdc'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the function, is_csn
When single server is used via testing
I check for it
Description
Related Issues
Checklist
make unit_testing
andmake integration-testing
successfully?Additional Notes or Comments