Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Data Flow
Data Ingestion
Ingestion Workflow
Commits
7c20e838
Commit
7c20e838
authored
Jul 20, 2020
by
Pingjiang Wang
Browse files
workflow-azure integration issue fix.
parent
7e99c9b9
Pipeline
#3773
failed with stage
in 3 minutes and 40 seconds
Changes
1
Pipelines
4
Show whitespace changes
Inline
Side-by-side
provider/workflow-azure/src/main/java/org/opengroup/osdu/workflow/provider/azure/service/SubmitIngestServiceImpl.java
View file @
7c20e838
...
...
@@ -40,6 +40,7 @@ public class SubmitIngestServiceImpl implements ISubmitIngestService {
private
static
Logger
logger
=
Logger
.
getLogger
(
SubmitIngestServiceImpl
.
class
.
getName
());
private
final
static
String
AIRFLOW_PAYLOAD_PARAMETER_NAME
=
"conf"
;
private
final
static
String
RUN_ID_PARAMETER_NAME
=
"run_id"
;
@Autowired
@Named
(
"AIRFLOW_URL"
)
...
...
@@ -55,7 +56,13 @@ public class SubmitIngestServiceImpl implements ISubmitIngestService {
dagName
));
String
airflowApiUrl
=
String
.
format
(
"%s/api/experimental/dags/%s/dag_runs"
,
airflowURL
,
dagName
);
JSONObject
requestBody
=
new
JSONObject
(
data
);
String
workflowId
=
data
.
get
(
RUN_ID_PARAMETER_NAME
).
toString
();
data
.
remove
(
RUN_ID_PARAMETER_NAME
);
JSONObject
requestBody
=
new
JSONObject
();
requestBody
.
put
(
RUN_ID_PARAMETER_NAME
,
workflowId
);
requestBody
.
put
(
AIRFLOW_PAYLOAD_PARAMETER_NAME
,
data
);
logger
.
log
(
Level
.
INFO
,
String
.
format
(
"Airflow endpoint: {%s}"
,
airflowApiUrl
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment