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
57e73306
Commit
57e73306
authored
Jul 21, 2020
by
Dania Kodeih (Microsoft)
Browse files
Merge branch 'azure-impl' into 'master'
workflow-azure integration issue fix. See merge request
!6
parents
7e99c9b9
7c20e838
Pipeline
#4860
passed with stages
in 17 minutes and 28 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
provider/workflow-azure/src/main/java/org/opengroup/osdu/workflow/provider/azure/service/SubmitIngestServiceImpl.java
View file @
57e73306
...
...
@@ -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