RunObserver.heartbeat_event()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
dl 0
loc 2
rs 10
1
#!/usr/bin/env python
2
# coding=utf-8
3
from __future__ import division, print_function, unicode_literals
4
5
__all__ = ('RunObserver',)
6
7
8
class RunObserver(object):
9
    """Defines the interface for all run observers."""
10
11
    priority = 0
12
13
    def queued_event(self, ex_info, command, host_info, queue_time, config,
14
                     meta_info, _id):
15
        pass
16
17
    def started_event(self, ex_info, command, host_info, start_time, config,
18
                      meta_info, _id):
19
        pass
20
21
    def heartbeat_event(self, info, captured_out, beat_time, result):
22
        pass
23
24
    def completed_event(self, stop_time, result):
25
        pass
26
27
    def interrupted_event(self, interrupt_time, status):
28
        pass
29
30
    def failed_event(self, fail_time, fail_trace):
31
        pass
32
33
    def resource_event(self, filename):
34
        pass
35
36
    def artifact_event(self, name, filename):
37
        pass
38