GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

JobFinishedMessageEventHandler.handle()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 13
ccs 0
cts 4
cp 0
crap 2
rs 9.4285
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
9
10
class JobFinishedMessageEventHandler:
11
    """
12
    An event handler for a JobFinishedMessage received events.
13
    """
14
15
    # ------------------------------------------------------------------------------------------------------------------
16
    @staticmethod
17
    def handle(_event, message, controller):
18
        """
19
        Handles a JobFinishedMessage received event.
20
21
        :param * _event: Not used.
22
        :param enarksh.controller.message.JobFinishedMessage.JobFinishedMessage message: The message.
23
        :param enarksh.controller.Controller.Controller controller: The controller.
24
        """
25
        del _event
26
27
        schedule = controller.get_schedule_by_sch_id(message.sch_id)
28
        schedule.node_stop(message.rnd_id, message.exit_status)
29
30
# ----------------------------------------------------------------------------------------------------------------------
31