Git Product home page Git Product logo

Comments (5)

serinamarie avatar serinamarie commented on May 23, 2024

Hi @alevas, this sounds reasonable to me as well as useful! I can take a look into enhancing the inspect cmds for work pool and work queues.

from prefect.

serinamarie avatar serinamarie commented on May 23, 2024

Hi @alevas, prefect work-pool inspect already returns the status as long as the work pool is not a push work pool:

❯ prefect work-pool inspect local-work
WorkPool(
    id='85d...',
    created=DateTime(2023, 3, 30, 22, 28, 22, 145126, tzinfo=Timezone('+00:00')),
    updated=DateTime(2023, 11, 20, 23, 24, 5, 754471, tzinfo=Timezone('+00:00')),
    name='local-work',
    type='process',
    base_job_template={
        'variables': {
            'type': 'object',
            'properties': {
                'env': {
                    'type': 'object',
                    'title': 'Environment Variables',
                    'default': {},
                    'description': 'Environment variables to set when starting a flow run.',
                    'additionalProperties': {'type': 'string'}
                },
                'name': {'type': 'string', 'title': 'Name', 'description': 'Name given to infrastructure created by a worker.'},
                'labels': {'type': 'object', 'title': 'Labels', 'description': 'Labels applied to infrastructure created by a worker.', 'additionalProperties': {'type': 'string'}},
                'command': {
                    'type': 'string',
                    'title': 'Command',
                    'description': 'The command to use when starting a flow run. In most cases, this should be left blank and the command will be automatically generated by the worker.'
                },
                'working_dir': {
                    'type': 'string',
                    'title': 'Working Directory',
                    'format': 'path',
                    'description': 'If provided, workers will open flow run processes within the specified path as the working directory. Otherwise, a temporary directory will be created.'
                },
                'stream_output': {
                    'type': 'boolean',
                    'title': 'Stream Output',
                    'default': True,
                    'description': 'If enabled, workers will stream output from flow run processes to local standard output.'
                }
            }
        },
        'job_configuration': {
            'env': '{{ env }}',
            'name': '{{ name }}',
            'labels': '{{ labels }}',
            'command': '{{ command }}',
            'working_dir': '{{ working_dir }}',
            'stream_output': '{{ stream_output }}'
        }
    },
    status=WorkPoolStatus.NOT_READY,
    default_queue_id='4b4...'
)

so I think the scope of what's needed might just be work queue health status display via CLI.

from prefect.

alevas avatar alevas commented on May 23, 2024

Nice @serinamarie , thanks for the super quick implementation. Looking forward to the next release :-)

from prefect.

serinamarie avatar serinamarie commented on May 23, 2024

Hi @alevas, it was released last week in 2.14.13 :)

from prefect.

alevas avatar alevas commented on May 23, 2024

Right, just updated my environment and can see the change, good work!

from prefect.

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.