Skip to content

Commit

Permalink
Pydocstyle updates
Browse files Browse the repository at this point in the history
  • Loading branch information
PalNilsson committed Nov 3, 2023
1 parent cfa9836 commit f328531
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
17 changes: 14 additions & 3 deletions pilot/control/payloads/eventservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# - Wen Guan, [email protected], 2017-2018
# - Paul Nilsson, [email protected], 2021-2023

"""Executor module for event service payloads."""

import os
import time
Expand All @@ -33,20 +34,30 @@


class Executor(generic.Executor):
"""Executor class for event service payloads."""

def __init__(self, args, job, out, err, traces):
super(Executor, self).__init__(args, job, out, err, traces)
"""
Set initial values.
:param args: args object
:param job:
:param out:
:param err:
:param traces:
"""
super().__init__(args, job, out, err, traces)

def run_payload(self, job, cmd, out, err):
"""
(add description)
Run the payload for the given job.
:param job: job object.
:param cmd: (unused in ES mode)
:param out: stdout file object.
:param err: stderr file object.
:return:
"""

self.pre_setup(job)

# get the payload command from the user specific code
Expand Down
4 changes: 4 additions & 0 deletions pilot/control/payloads/eventservicemerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# - Wen Guan, [email protected], 2018
# - Paul Nilsson, [email protected], 2020-2023

"""Executor module for event service merge payloads."""

import os

from pilot.control.payloads import generic
Expand All @@ -30,6 +32,8 @@


class Executor(generic.Executor):
"""Executor class for event service merge payloads."""

def __init__(self, args, job, out, err, traces):
super(Executor, self).__init__(args, job, out, err, traces)

Expand Down
4 changes: 4 additions & 0 deletions pilot/control/payloads/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# - Paul Nilsson, [email protected], 2017-2023
# - Wen Guan, [email protected], 2018

"""Executor module for generic payloads."""

import time
import os
import signal
Expand All @@ -48,6 +50,8 @@


class Executor(object):
"""Executor class for generic payloads."""

def __init__(self, args, job, out, err, traces):
self.__args = args
self.__job = job
Expand Down

0 comments on commit f328531

Please sign in to comment.