Skip to content

Commit

Permalink
fixed the started_event interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwlouse committed Mar 12, 2016
1 parent d1b7c15 commit 59c7d4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sacred/observers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class RunObserver(object):
def queued_event(self, ex_info, queue_time, config, meta_info):
pass

def started_event(self, ex_info, host_info, start_time, config, meta_info):
def started_event(self, ex_info, command, host_info, start_time, config,
meta_info):
pass

def heartbeat_event(self, info, captured_out, beat_time):
Expand Down
3 changes: 2 additions & 1 deletion sacred/observers/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def queued_event(self, ex_info, queue_time, config, meta_info):
with open(source_name, 'rb') as f:
self.fs.put(f, filename=source_name)

def started_event(self, ex_info, host_info, start_time, config, meta_info):
def started_event(self, ex_info, command, host_info, start_time, config,
meta_info):
if self.overwrite is None:
self.run_entry = {}
else:
Expand Down

0 comments on commit 59c7d4a

Please sign in to comment.