ephraimbuddy commented on code in PR #77607:
URL: https://github.com/apache/airflow/pull/77607#discussion_r4739872285
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -1374,6 +1389,7 @@ def _get_sentry_integration(executor: BaseExecutor) ->
str:
generator=executor.jwt_generator,
sentry_integration=_get_sentry_integration(executor),
log_context=log_contexts[ti.id],
+ bundle_manifests=bundle_manifests,
Review Comment:
Thinking about this more, I don't think we need the digest. The pinned
version already ties down the manifest: `fetch_snapshot` checks the manifest
against it, and the bundle checksums each file after fetching. So we can send
just the bundle name and version, like we do for filesystem-store bundles, and
have the store fetch the manifest by version. The tables stay as they are, but
we don't need the digest column, the prefetch in the scheduler or the pointer,
and your third question goes away.
We'll need the same for the Dag processor too. It still reads and publishes
through `create_session`, and once #74796 is in, it won't have DB access in
3.5. Could we add the routes for both while we're at it? Something like `GET
/bundles/{name}/manifests/{version}` and `GET /bundles/{name}/ref`, with `PUT`s
that only the Dag processor can call. Scoping by bundle should be enough for
these. I'd also do the fetch inside the store rather than before building the
bundle, since the callback and language-SDK paths don't go through
`initialize_ti_bundle`.
For unpinned, let's keep it unsupported in this PR and fail early like Niko
suggested. The handler loader pulls in a bundle that isn't the task's own, so
that one needs more thought.
--
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]