You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ivan Wirawan (JIRA)" <ji...@apache.org> on 2018/01/12 06:26:00 UTC
[jira] [Commented] (AIRFLOW-1996) Update DataflowHook waitfordone
for Streaming type job
[ https://issues.apache.org/jira/browse/AIRFLOW-1996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16323608#comment-16323608 ]
Ivan Wirawan commented on AIRFLOW-1996:
---------------------------------------
{code}
elif 'JOB_STATE_RUNNING' == self._job['currentState'] and 'JOB_TYPE_STREAMING' == self._job['type']:
return True
{code}
need to add this before
{code}
elif 'JOB_STATE_RUNNING' == self._job['currentState']:
time.sleep(self._poll_sleep)
{code}
> Update DataflowHook waitfordone for Streaming type job
> ------------------------------------------------------
>
> Key: AIRFLOW-1996
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1996
> Project: Apache Airflow
> Issue Type: Improvement
> Components: contrib, Dataflow, gcp
> Reporter: Ivan Wirawan
> Assignee: Ivan Wirawan
>
> When I ran a Dataflow Job with Streaming Job Type, the airflow task will not finished cause the job will not go to state Done and always Running.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)