Coder Social home page Coder Social logo

galileo-db's People

Contributors

phip123 avatar praith-dsg avatar silv-io avatar thrau avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

silv-io

galileo-db's Issues

Manager CLI not available in container

Invoking the galileodb.cli.manager through docker exec results in an error, stating that the file is not available.
I've looked into the Dockerfiles for the recorder and due to the mulit-stage build the scripts are not copied in the final step.

Solving this issue should be as easy as adding COPY --from=builder /src /src to the prod stage.

CLI Recorder does not flush traces on termination

Terminating a galileodb.cli.recorder does not trigger a TraceRecorder flush.
This leads to some traces having their experiment id assigned, while the ones from the last flush, which is invoked by the finally statement upon joining the TraceRecorder process, don't seem to be in the database when exp.finalize_experiment is called.

https://github.com/edgerun/galileo-db/blob/master/galileodb/cli/recorder.py#L65-68

https://github.com/edgerun/galileo-db/blob/master/galileodb/recorder/traces.py#L63

update delete_experiment to also remove events

we added experiment events, which are not deleted in

def delete_experiment(self, exp_id: str):
experiment = self.get_experiment(exp_id)
if experiment is None:
raise ValueError('No such experiment %s' % exp_id)
stmts = [
"DELETE FROM `telemetry` WHERE EXP_ID = " + self.db.placeholder,
"DELETE FROM `traces` WHERE EXP_ID = " + self.db.placeholder,
"DELETE FROM `experiments` WHERE EXP_ID = " + self.db.placeholder,
]
for sql in stmts:
try:
self.db.execute(sql, (exp_id,))
except Exception as e:
logger.exception('Exception while executing %s', sql, e)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.