Skip to content

Commit

Permalink
[AI Flow Plugin] Solve job config parsing error bug (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchaochen1 authored Sep 30, 2021
1 parent ac9261d commit 7cb73c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class BashJobConfig(JobConfig):
b: b
"""
def __init__(self, job_name: Text = None,
job_label_report_interval: float = 5.0,
properties: Dict[Text, Jsonable] = None) -> None:
super().__init__(job_name, 'bash', properties)
super().__init__(job_name, 'bash', job_label_report_interval, properties)

@property
def env(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ class FlinkJobConfig(JobConfig):
"""

def __init__(self, job_name: Text = None,
job_label_report_interval: float = 5.0,
properties: Dict[Text, Jsonable] = None) -> None:
super().__init__(job_name, 'flink', properties)
super().__init__(job_name, 'flink', job_label_report_interval, properties)

@property
def env(self):
Expand Down Expand Up @@ -81,4 +82,5 @@ def stop_mode(self):
@classmethod
def from_job_config(cls, job_config: JobConfig) -> 'FlinkJobConfig':
return FlinkJobConfig(job_name=job_config.job_name,
job_label_report_interval=job_config.job_label_report_interval,
properties=job_config.properties)
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ class PythonJobConfig(JobConfig):
b: b
"""
def __init__(self, job_name: Text = None,
job_label_report_interval: float = 5.0,
properties: Dict[Text, Jsonable] = None) -> None:
super().__init__(job_name, 'python', properties)
super().__init__(job_name, 'python', job_label_report_interval, properties)

@property
def env(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def process(self, execution_context: ExecutionContext, input_list: List[Table] =
return []


class StreamValidateExecutor(FlinkPythonProcessor):
class StreamValidateExecutor(PythonProcessor):
def __init__(self):
super().__init__()
self.path = None
Expand Down

0 comments on commit 7cb73c1

Please sign in to comment.