This is an automated email from the ASF dual-hosted git repository.

ruifengz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new b1af89de13f [SPARK-44194][DOCS][FOLLOWUP] Add missing `versionadded` 
annotations for JobTag APIs
b1af89de13f is described below

commit b1af89de13f34190686fcb321a0092ab1ceb2908
Author: Ruifeng Zheng <ruife...@apache.org>
AuthorDate: Mon Jul 10 17:20:13 2023 +0800

    [SPARK-44194][DOCS][FOLLOWUP] Add missing `versionadded` annotations for 
JobTag APIs
    
    ### What changes were proposed in this pull request?
    Add missing `versionadded` annotations
    
    ### Why are the changes needed?
    to improve docs
    
    ### Does this PR introduce _any_ user-facing change?
    yes
    
    ### How was this patch tested?
    existing tests
    
    Closes #41917 from zhengruifeng/job_tag_since.
    
    Authored-by: Ruifeng Zheng <ruife...@apache.org>
    Signed-off-by: Ruifeng Zheng <ruife...@apache.org>
---
 python/pyspark/context.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/python/pyspark/context.py b/python/pyspark/context.py
index 4867ce2ae29..81adb6ced33 100644
--- a/python/pyspark/context.py
+++ b/python/pyspark/context.py
@@ -2193,6 +2193,8 @@ class SparkContext:
         """
         Add a tag to be assigned to all the jobs started by this thread.
 
+        .. versionadded:: 3.5.0
+
         Parameters
         ----------
         tag : str
@@ -2246,6 +2248,8 @@ class SparkContext:
         Remove a tag previously added to be assigned to all the jobs started 
by this thread.
         Noop if such a tag was not added earlier.
 
+        .. versionadded:: 3.5.0
+
         Parameters
         ----------
         tag : str
@@ -2276,6 +2280,8 @@ class SparkContext:
         """
         Get the tags that are currently set to be assigned to all the jobs 
started by this thread.
 
+        .. versionadded:: 3.5.0
+
         Returns
         -------
         set of str
@@ -2302,6 +2308,8 @@ class SparkContext:
         """
         Clear the current thread's job tags.
 
+        .. versionadded:: 3.5.0
+
         See Also
         --------
         :meth:`SparkContext.addJobTag`
@@ -2406,6 +2414,8 @@ class SparkContext:
         Cancel active jobs that have the specified tag. See
         :meth:`SparkContext.addJobTag`.
 
+        .. versionadded:: 3.5.0
+
         Parameters
         ----------
         tag : str


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to