graphql-and-webserver
Use when a coding agent needs to start or debug dagster-webserver, query Dagster GraphQL through the CLI or Python client, handle path prefixes, headers, auth, remote URLs, read-only webserver mode, or diagnose webserver/API failures.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- graphql-and-webserver
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use when a coding agent needs to start or debug dagster-webserver, query Dagster GraphQL through the CLI or Python client, handle path prefixes, headers, auth, remote URLs, read-only webserver mode, or diagnose webserver/API failures.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/troubleshooting.md7.7 KB
- 参考文档references/workflows.md8.2 KB
- 脚本scripts/graphql_health_check.py6.0 KB
03 SKILL.md 正文
GraphQL And Webserver
Use this sub-skill for Dagster OSS webserver and GraphQL API workflows in an installed Dagster Python environment. It covers dagster-webserver, dagster-graphql, the DagsterGraphQLClient, remote GraphQL URLs, path prefixes, headers/auth, read-only serving, and API troubleshooting.
Route Here
- Starting
dagster-webserverdirectly, especially with--host,--port,--path-prefix,--read-only, or logging/database timeout flags. - Running one-off GraphQL queries with
dagster-graphql --text,--file,--predefined,--variables,--remote, or--output. - Using
DagsterGraphQLClientfor run status, job submission, repository-location reload/shutdown, run termination, custom headers, custom auth, HTTPS, timeouts, or path prefixes. - Debugging
/graphql,/server_info, workspace target selection, invalid variables JSON, remote URL validation, connection errors, read-only mutation failures, or API response__typenameerrors.
Route Elsewhere
- Core Dagster asset/job/Definitions modeling: use
../asset-definitions/SKILL.mdif that sub-skill exists. - Local
dagsterCLI project validation, asset materialization, schedule/sensor commands, ordagster dev: use../cli-local-development/SKILL.mdif that sub-skill exists. - Production deployment topology, daemon, instance storage, run launchers, Kubernetes, or service operations: use
../deployment-operations/SKILL.mdif that sub-skill exists. - Dagster Plus authorization and cloud deployment administration: treat this sub-skill only as a client/API caution and route cloud operations elsewhere if available.
Start Here
- Decide whether the task is server-side (
dagster-webserver), CLI query (dagster-graphql), or Python client (DagsterGraphQLClient). - For server startup, choose a workspace target deliberately:
-w/--workspace,-f/--python-file,-m/--module-name, package target flags,-a/--attribute, and-d/--working-directoryas appropriate. - For GraphQL CLI queries, provide exactly one query source:
--text,--file, or--predefined; add--variablesas a JSON string only when the query declares variables. - For remote webservers, verify the public base URL and path prefix before querying; the GraphQL endpoint is the base URL plus
/graphqlafter any prefix. - Use
python scripts/graphql_health_check.py --helpfrom this sub-skill directory to inspect safe helper options before any network call.
References
- Workflows and API Reference for concrete webserver, GraphQL CLI, Python client, path-prefix, header/auth, and read-only examples.
- Troubleshooting for install/import failures, optional dependency gaps, CLI/API misuse, connection errors, path-prefix problems, read-only failures, and GraphQL response errors.
- GraphQL health-check script for a safe
--dry-runcommand printer or optional read-only GraphQL health query against a webserver URL.
Safety Notes
dagster-webserverstarts a long-running service; do not launch it as a smoke test unless the user asked to start a server.dagster-graphqlmutations andDagsterGraphQLClientmethods such assubmit_job_execution,terminate_run,reload_repository_location, andshutdown_repository_locationcan mutate deployment state.- Prefer read-only queries such as
version,repositoriesOrError, or run-status lookups when diagnosing connectivity. - Never print secrets from auth headers or tokens; pass them via environment variables or secret managers and redact them in logs.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).