rmfrall commented on issue #55432: URL: https://github.com/apache/airflow/issues/55432#issuecomment-7241280303
Two implementation attempts have now landed on the same wall, so before anyone (myself included) spends another round on this, it would help a lot to settle the design direction. Where the previous attempts ended: * #70343 (task-SDK-only `static_url`) was closed by @kaxil with the key lesson: the API server resolves operator links as `XComOperatorLink` reading from XCom, so anything that only lives on the Task-SDK side renders as an empty link in the UI. A static URL must be carried through the serialized DAG. * #76627 (full multi-layer change, incl. `SERIALIZATION_VERSION` 3 → 4 with a v3→v4 conversion) addressed that, but was withdrawn by its author this week — so the cross-layer questions it raised never got a committer ruling. The questions I think need an answer before attempt #3: 1. **Serialization strategy.** #76627 bumped `DagSerialization.SERIALIZER_VERSION` to 4, which means bundles written by core ≥ this version will be rejected by cores that only know ≤ 3 (`Unsure how to deserialize version 4`). Is that trade-off acceptable here, or is there a preference for an additive, non-bumping representation (e.g. encoding static links through the existing link entry shape) that keeps older cores loading new bundles? 2. **Link-class shape.** Should `BaseOperatorLink` grow an optional `static_url` while keeping `get_link` overridable, with a guard that a concrete subclass must override at least one of them at class-definition time (avoids deferring the error to `finalize()`, after the task already ran — @guan404ming's point in #76627)? 3. **When do the buttons render?** Today XCom-backed links only show after the task succeeds (which also breaks the use case @NilsJPWerner described — no buttons while running or failed). Static links resolvable from the serialized DAG alone could be returned for any task state. Is that the desired behavior? 4. **Skip the XCom push.** For the metaDB-bloat motivation to actually materialize, `task_runner.py` must skip the XCom push for static links (the fix @aaron-y-chen prompted in #70343). I'd treat that as in-scope rather than follow-up. If maintainers can confirm a direction on (1) — v4 bump vs non-bumping — I'm happy to take the implementation on (building on the lessons from both prior PRs, credit to @iRAFEEK and the #76627 author for the groundwork). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
