Code Monkey home page Code Monkey logo

Comments (2)

VannTen avatar VannTen commented on June 26, 2024 1

From the log of the wait containers in those pods and the annotations it looks like this messages_to_be_sent.json is the output of that pod.

Together with the fact that the number of messages to be sent is 0 maybe the process tried to reread the file it writes, and fail when it did not write it because there was no messages ?

I'll take a look.

from kebechet.

VannTen avatar VannTen commented on June 26, 2024

Hum, it's not as bad as it looks.
We just log it wrong :

    # Store message to file that need to be sent.
    try:
        with open(MSG_OUT_FILE, "r") as json_file:
            if os.stat(MSG_OUT_FILE).st_size != 0:
                all_messages: list = json.load(json_file)
                if type(all_messages) != list:
                    raise TypeError(f"Message file must be a list of messages. Got type {type(all_messages)}")
                all_messages = all_messages + output_messages
    except Exception as e:
        _LOGGER.exception(e)
        all_messages = output_messages

_LOGGER.exception is _LOGGER.error with extra stuff. This should probably be more specific and not and error.

from kebechet.

Related Issues (20)

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.