fix condition
This commit is contained in:
parent
4fdb796bb2
commit
fff5eeb018
1 changed files with 12 additions and 5 deletions
|
|
@ -44,7 +44,6 @@
|
|||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<default_value/>
|
||||
<field_name>exists</field_name>
|
||||
<variable_name>JOB_PARALLEL_ERROR_EXITS</variable_name>
|
||||
<variable_type>PARENT_WORKFLOW</variable_type>
|
||||
|
|
@ -71,10 +70,18 @@
|
|||
<connection>ervu-dashboard</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit>0</limit>
|
||||
<sql>SELECT exists(select 1
|
||||
FROM etl.job_execution
|
||||
where job_name in ('citizen_job', 'recruits_info_job')
|
||||
and status in ('ERROR', 'PROCESSING'));</sql>
|
||||
<sql>SELECT
|
||||
EXISTS (
|
||||
SELECT 1
|
||||
FROM etl.job_execution
|
||||
WHERE job_name IN ('citizen_job', 'recruits_info_job')
|
||||
)
|
||||
AND NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM etl.job_execution
|
||||
WHERE job_name IN ('citizen_job', 'recruits_info_job')
|
||||
AND status IN ('PROCESSING', 'ERROR')
|
||||
);</sql>
|
||||
<variables_active>N</variables_active>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue