Skip to content

Commit

Permalink
fix component output data no header
Browse files Browse the repository at this point in the history
Signed-off-by: zengjice <[email protected]>
  • Loading branch information
jarviszeng-zjc committed Jun 6, 2020
1 parent 918b2c6 commit 3b0644e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion fate_flow/driver/task_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,8 @@ def stop(job_id, end_status=JobStatus.FAILED, component_name=''):
@staticmethod
def clean_queue():
schedule_logger().info('get clean queue command')
jobs = job_utils.query_job(is_initiator=1, status=JobStatus.WAITING)
# jobs = job_utils.query_job(is_initiator=1, status=JobStatus.WAITING)
jobs = job_utils.query_job(status=JobStatus.WAITING)
if jobs:
for job in jobs:
schedule_logger(job.f_job_id).info(
Expand Down
4 changes: 2 additions & 2 deletions fate_flow/manager/queue_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def put(self, item, block=True, timeout=None, status=None, job_id=''):
try:
is_failed = self.update_event(item=item, status=status, job_id=job_id, operating='put')
except Exception as e:
error =e
error = e
MysqlQueue.unlock(DB, 'fate_flow_job_queue')
if error:
raise Exception(e)
raise Exception(error)
self.not_empty.notify()
return is_failed

Expand Down
5 changes: 4 additions & 1 deletion fate_flow/manager/tracking_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,11 @@ def save_output_data_table(self, data_table: Table, data_name: str = 'component'
persistent_table = data_table.save_as(
namespace=persistent_table_namespace,
name=persistent_table_name)
persistent_table_metas = {}
persistent_table_metas.update(data_table.get_metas())
persistent_table_metas["schema"] = data_table.schema
session.save_data_table_meta(
{'schema': data_table.schema, 'header': data_table.schema.get('header', [])},
persistent_table_metas,
data_table_namespace=persistent_table.get_namespace(), data_table_name=persistent_table.get_name())
data_table_info = {
data_name: {'name': persistent_table.get_name(), 'namespace': persistent_table.get_namespace()}}
Expand Down
File renamed without changes.

0 comments on commit 3b0644e

Please sign in to comment.