aaron-y-chen commented on code in PR #74674:
URL: https://github.com/apache/airflow/pull/74674#discussion_r4436664116
##########
airflow-core/docs/authoring-and-scheduling/language-sdks/go.rst:
##########
@@ -467,14 +467,21 @@ Its first parameter is an ``airflow.Context``, which
gives it what Airflow provi
- ``DagID``, ``RunID``, ``TaskID`` (including any task group prefix),
``MapIndex`` (``nil`` for an unmapped
task) and ``TryNumber``.
* - ``actx.DagRun()``
- - ``DagID``, ``RunID``, and the ``*time.Time`` fields ``LogicalDate``,
``DataIntervalStart`` and
- ``DataIntervalEnd`` (``nil`` when the run has no such value, such as a
manual run).
+ - ``DagID``, ``RunID``, ``RunAfter``, ``RunType`` (an
``airflow.DagRunType`` such as
+ ``airflow.DagRunTypeManual``), ``Conf`` (may be ``nil`` or empty when
no configuration was supplied), and
+ the ``*time.Time`` fields ``LogicalDate``, ``DataIntervalStart`` and
``DataIntervalEnd`` (``nil`` when the
+ run has no such value, such as a manual run).
``airflow.Context`` is a ``context.Context``, so pass it to a client call or
to ``http.NewRequestWithContext``. Its
``Done()`` fires when Airflow stops the task, so long-running work can stop
cleanly. Cleanup that must outlive
that runs under ``context.WithoutCancel(actx)``. A helper that takes a plain
``context.Context`` gets the
``airflow.Context`` back with ``airflow.FromContext``.
+``Conf`` is a ``map[string]any``. Its integers are ``int64``, except positive
values above ``math.MaxInt64``, which
+are ``uint64``; floating-point values are ``float64``. This also applies to
values in nested maps and arrays. The
+runtime copies these containers from the startup details. Use a map lookup or
``len`` to check for configuration
+entries; a run without configuration may have a ``nil`` or empty map.
Review Comment:
Fixed, thanks!
--
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]