superlance | Superlance utilities for use with the Supervisor process | BPM library

 by   Supervisor Python Version: 2.0.0 License: Non-SPDX

kandi X-RAY | superlance Summary

kandi X-RAY | superlance Summary

superlance is a Python library typically used in Automation, BPM applications. superlance has no bugs, it has no vulnerabilities, it has build file available and it has low support. However superlance has a Non-SPDX License. You can install using 'pip install superlance' or download it from GitHub, PyPI.

Superlance utilities for use with the Supervisor process control system
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              superlance has a low active ecosystem.
              It has 418 star(s) with 137 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 17 open issues and 31 have been closed. On average issues are closed in 141 days. There are 13 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of superlance is 2.0.0

            kandi-Quality Quality

              superlance has 0 bugs and 79 code smells.

            kandi-Security Security

              superlance has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              superlance code analysis shows 0 unresolved vulnerabilities.
              There are 4 security hotspots that need review.

            kandi-License License

              superlance has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              superlance releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              superlance saves you 1086 person hours of effort in developing the same functionality from scratch.
              It has 2460 lines of code, 163 functions and 24 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed superlance and discovered the below as its top functions. This is intended to give you an instant insight into superlance implemented functionality, and help decide if they suit your requirements.
            • Main loop
            • Perform action on supervisor
            • Restart a process
            • Mail the email
            • Run the main loop
            • Calculate the total number of processes for a given pid
            • Emails the mail
            • Parse command line arguments
            • Parse name and size
            • Parse byte_size value
            • Parse the given value in seconds
            • Run the process until the process finishes
            • Mail the user
            • Create a listener from the command line options
            • Create an option parser
            • Validate command line options
            • Parse command line options
            • Send batch notification
            • Send email
            • Get the email message
            • Logs an email
            • The main thread
            • Handle an event
            • Handle ProcessStateChange events
            • Handle a single tick event
            Get all kandi verified functions for this library.

            superlance Key Features

            No Key Features are available at this moment for superlance.

            superlance Examples and Code Snippets

            No Code Snippets are available at this moment for superlance.

            Community Discussions

            Trending Discussions on superlance

            QUESTION

            How to get supervisord to restart hung workers?
            Asked 2017-May-31 at 08:29

            I have a number of Python workers managed by supervisord that should continuously print to stdout (after each completed task) if they are working properly. However, they tend to hang, and we've had difficulty finding the bug. Ideally supervisord would notice that they haven't printed in X minutes and restart them; the tasks are idempotent, so non-graceful restarts are fine. Is there any supervisord feature or addon that can do this? Or another supervisor-like program that has this out of the box?

            We are already using http://superlance.readthedocs.io/en/latest/memmon.html to kill if memory usage skyrockets, which mitigates some of the hangs, but a hang that doesn't cause a memory leak can still cause the workers to reach a standstill.

            ...

            ANSWER

            Answered 2017-May-31 at 08:29

            One possible solution would be to wrap your python script in a bash script that'd monitor it and exit if there isn't output to stdout for a period of time.

            For example:

            kill-if-hung.sh

            Source https://stackoverflow.com/questions/43665318

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install superlance

            You can install using 'pip install superlance' or download it from GitHub, PyPI.
            You can use superlance like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install superlance

          • CLONE
          • HTTPS

            https://github.com/Supervisor/superlance.git

          • CLI

            gh repo clone Supervisor/superlance

          • sshUrl

            git@github.com:Supervisor/superlance.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular BPM Libraries

            Try Top Libraries by Supervisor

            supervisor

            by SupervisorPython

            initscripts

            by SupervisorShell

            meld3

            by SupervisorPython