Comments (5)
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.
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.
Nice @serinamarie , thanks for the super quick implementation. Looking forward to the next release :-)
from prefect.
Hi @alevas, it was released last week in 2.14.13 :)
from prefect.
Right, just updated my environment and can see the change, good work!
from prefect.
Related Issues (20)
- The Notification Webhook is broken for a single Run State HOT 2
- Discord Block and Automation is not working on the Cloud HOT 3
- remove `@copy_model_fields` from schemas HOT 1
- Prefect dashboad not built in prefecthq/prefect:2.16.7-python3.12 HOT 4
- prefect deployment with gcs-bucket storage block loading into bucket incorrectly
- handle dynamic importing from prefect.pydantic
- expose field and model validators in the pydantic compat layer HOT 1
- Duplicate pods running same flow run HOT 1
- datadog tests are significantly longer than other tests
- Duplicated local logs from prefect
- fix flaky `TaskServer` tests
- prefect.deployment.schedules documentation is missing from Prefect website
- Start sending a User-Agent header on all API calls with the current `prefect` version
- ModuleNotFoundError: No module named 'typer.core' HOT 2
- Bug: Override parameters not used in JSON view HOT 1
- Custom values of optional parameters not used in input form HOT 1
- Error with prefect - missing 1 required positional argument HOT 1
- Automations. Jinja/Json input isn't converted to values HOT 1
- ModuleNotFoundError after installing a local package successfully HOT 6
- cannot call flows in standalone tasks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prefect.