|
26 | 26 | ################################################################################## |
27 | 27 |
|
28 | 28 | dag = DAG( |
29 | | - dag_id="${pds_nucleus_s3_backlog_processor_dag_id}", |
30 | | - schedule_interval=None, |
31 | | - catchup=False, |
32 | | - start_date=days_ago(1), |
33 | | - default_args={ |
| 29 | + dag_id="PDS_SBN-pds-nucleus-s3-backlog-processor", |
| 30 | + schedule_interval=None, |
| 31 | + catchup=False, |
| 32 | + start_date=days_ago(1), |
| 33 | + default_args={ |
34 | 34 | "retries": 3, |
35 | 35 | "retry_delay": timedelta(seconds=2), |
36 | | - }, |
37 | | - params={ |
38 | | - "s3_bucket_name": Param("<S3 bucket name>", type="string"), |
39 | | - "s3_bucket_prefix": Param("<prefix (S3 path to start listing the objects from>", type=["null", "string"]), |
40 | | - "sqs_queue_url": Param("<SQS queue which is used to save files names in the database>", type="string"), |
41 | | - "aws_region": Param("<aws_region>", type="string"), |
42 | | - }, |
| 36 | + }, |
| 37 | + params={ |
| 38 | + "s3_bucket_name": Param(default="<S3 bucket name>", type="string", pattern= "^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$", minLength=3, maxLength=63), |
| 39 | + "s3_bucket_prefix": Param(default="<prefix (S3 path to start listing the objects from>", type=["null", "string"], pattern="^([^/]+/)*[^/]+/?$"), |
| 40 | + "sqs_queue_url": Param(default="<SQS queue which is used to save files names in the database>", type="string", pattern="^https:\\/\\/sqs\\.us-west-2\\.amazonaws\\.com\\/\\d+\\/pds-nucleus.*$"), |
| 41 | + "aws_region": Param(default="<aws_region>", type="string", pattern="^(us|eu|ap|ca|sa|af|me)-[a-z]+-\\d{1}$") |
| 42 | + }, |
43 | 43 | ) |
44 | 44 |
|
45 | 45 | # Print start time |
|
0 commit comments