Skip to content

Commit c54c423

Browse files
Dragos0000duprijil
authored andcommitted
adding examples to reprocess by status
1 parent cf65e6c commit c54c423

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dags/reprocess_notices_from_backlog_by_status.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
END_DATE_DAG_PARAM = "end_date"
1919
NOTICE_STATUSES_DAG_PARAM = "notice_statuses"
2020

21+
2122
@dag(
2223
default_args=DEFAULT_DAG_ARGUMENTS,
2324
dag_id=DAG_ID,
@@ -29,7 +30,8 @@
2930
NOTICE_STATUSES_DAG_PARAM: Param(
3031
type="array",
3132
title="Notice Statuses",
32-
description="Required. List of notice statuses to reprocess. Example: [\"NORMALISED_METADATA\", \"DISTILLED\"]. Every status value should be entered on a newline"
33+
description="Required. Select one or more notice statuses to reprocess.",
34+
examples=[status.name for status in NoticeStatus]
3335
),
3436
START_DATE_DAG_PARAM: Param(default="", type=["null", "string"], format="date", description="Start publication date (YYYY-MM-DD)"),
3537
END_DATE_DAG_PARAM: Param(default="", type=["null", "string"], format="date", description="End publication date (YYYY-MM-DD)")

0 commit comments

Comments
 (0)