events-blocks-assets
Use Prefect events, automations, blocks, assets, variables, notification blocks, and concurrency limits for operational workflow primitives.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- events-blocks-assets
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Prefect events, automations, blocks, assets, variables, notification blocks, and concurrency limits for operational workflow primitives.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/blocks-assets-concurrency.md10.1 KB
- 参考文档references/cli-reference.md6.0 KB
- 参考文档references/events-automations.md11.8 KB
- 参考文档references/troubleshooting.md9.7 KB
- 脚本scripts/validate_automation.py8.1 KB
03 SKILL.md 正文
Events Blocks Assets
Use this sub-skill when a task is about operational primitives around a Prefect workflow: custom events, event-triggered automations, notification/webhook blocks, saved block documents, custom block classes, assets and materialization metadata, variables, and global or tag-based concurrency limits.
Start Here
- Read references/events-automations.md for event schemas,
emit_event, automation JSON/YAML shapes, trigger/action fields, deployment-event matching, and server/Cloud requirements. - Read references/blocks-assets-concurrency.md for
Block.save/Block.load, custom blocks, notification blocks, variables, assets,@materialize, global concurrency limits, tag limits, and sync/async concurrency contexts. - Check exact commands in references/cli-reference.md before composing
prefect events,prefect automation,prefect block,prefect variable,prefect global-concurrency-limit, orprefect concurrency-limitcommands. - Run
python scripts/validate_automation.py --helpto validate automation JSON/YAML locally beforeprefect automation createorprefect automation update. - Read references/troubleshooting.md when diagnosing invalid event resources, automation payload validation, block load/save failures, asset materialization surprises, concurrency timeouts, missing optional block dependencies, or Cloud-only features.
Use For
prefect.events.emit_event,prefect event emit,prefect events stream, event resources, related resources, payloads,follows, event size limits, and event naming grammar.- Automation payloads using
EventTrigger,MetricTrigger,CompoundTrigger,SequenceTrigger, and actions such asrun-deployment,send-notification,call-webhook, pause/resume, cancel/delete/suspend, and Cloud-only incident actions. Block.save,Block.load,Block.load_from_ref, customBlocksubclasses, block type registration, notification/webhook blocks, secret fields, and block document schema drift.Asset,AssetProperties,@materialize,asset_deps,add_asset_metadata, materialization events, and runtime asset metadata expectations.Variable.set/Variable.get,prefect variable, global concurrency limits, tag-based task concurrency limits, andprefect.concurrency.sync/prefect.concurrency.asynciocontexts.
Route Elsewhere
- General profile selection, server startup/status, Cloud login, API URL diagnostics, dashboard, and non-events CLI operations:
../cli-server-operations/SKILL.md. - Basic
@flow/@taskauthoring, retries, caching, futures, local tests, and ordinary task-run state handling:../flow-task-authoring/SKILL.md. - Deployment creation, deployment triggers in
prefect.yaml, work pools, workers, schedules, and deployment run ownership:../deployments-workers/SKILL.md. - Direct
get_client,PrefectClient, settings/profile internals, schema models, and theprefect-clientpackage split:../api-client-settings/SKILL.md. - Maintainer-only source changes, repo test selection, generated artifacts, and internal event/block/concurrency implementation changes:
../repo-development/SKILL.md.
Safe Validation
- Validate an automation file locally without contacting a Prefect API:
python scripts/validate_automation.py --file automation.yaml
- Print a deployment-event automation template:
python scripts/validate_automation.py --example deployment-event
- Use CLI help checks before running server-mutating commands:
prefect events emit --help
prefect automation create --help
prefect block type ls --help
prefect global-concurrency-limit create --help
Safety Notes
prefect events streamopens a live event-stream subscription;--accountis Cloud/account-wide and can include audit logs.prefect events emit,prefect automation create,prefect block save/create/delete,prefect variable set/unset, and concurrency-limit commands mutate server-side or Cloud workspace state.- Blocks, variables, automations, event streams, and concurrency limits require a reachable Prefect API or Cloud workspace; route profile/API troubleshooting to
../cli-server-operations/SKILL.md. - Webhook, notification, audit log, and incident workflows may require Prefect Cloud features, credentials, and block documents; keep credentials out of examples and 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).