Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Manifest Ingestion DAG
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Data Flow
Data Ingestion
Manifest Ingestion DAG
Commits
c0d28b43
Commit
c0d28b43
authored
4 years ago
by
Yan Sushchynski (EPAM)
Committed by
Siarhei Khaletski (EPAM)
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add trigger rule to skip batch tasks
(cherry picked from commit
8af8301d
)
parent
a4643d8a
No related branches found
No related tags found
No related merge requests found
Pipeline
#28426
failed
4 years ago
Stage: linters
Stage: unit_tests
Stage: test_dags
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dags/osdu-ingest-r3.py
+10
-5
10 additions, 5 deletions
src/dags/osdu-ingest-r3.py
with
10 additions
and
5 deletions
src/dags/osdu-ingest-r3.py
+
10
−
5
View file @
c0d28b43
...
...
@@ -77,7 +77,8 @@ with DAG(
task_id
=
"
check_payload_type
"
,
dag
=
dag
,
provide_context
=
True
,
python_callable
=
is_batch
python_callable
=
is_batch
,
trigger_rule
=
"
none_failed_or_skipped
"
)
update_status_finished_op
=
UpdateStatusOperator
(
...
...
@@ -89,21 +90,24 @@ with DAG(
validate_schema_operator
=
ValidateManifestSchemaOperator
(
task_id
=
"
validate_manifest_schema_task
"
,
provide_context
=
True
,
dag
=
dag
dag
=
dag
,
trigger_rule
=
"
none_failed_or_skipped
"
)
ensure_integrity_op
=
EnsureManifestIntegrityOperator
(
task_id
=
ENSURE_INTEGRITY_TASK
,
provide_context
=
True
,
previous_task_id
=
validate_schema_operator
.
task_id
,
dag
=
dag
dag
=
dag
,
trigger_rule
=
"
none_failed_or_skipped
"
)
process_single_manifest_file
=
ProcessManifestOperatorR3
(
task_id
=
PROCESS_SINGLE_MANIFEST_FILE
,
provide_context
=
True
,
dag
=
dag
,
previous_task_id
=
ensure_integrity_op
.
task_id
previous_task_id
=
ensure_integrity_op
.
task_id
,
trigger_rule
=
"
none_failed_or_skipped
"
)
# Dummy operator as entry point into parallel task of batch upload
...
...
@@ -118,7 +122,8 @@ with DAG(
provide_context
=
True
,
dag
=
dag
,
previous_task_id
=
f
"
provide_manifest_integrity_task_
{
batch
+
1
}
"
,
batch_number
=
batch
+
1
batch_number
=
batch
+
1
,
trigger_rule
=
"
none_failed_or_skipped
"
)
>>
update_status_finished_op
update_status_running_op
>>
branch_is_batch_op
# pylint: disable=pointless-statement
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment