Skip to content

Commit 279404c

Browse files
committed
lint
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
1 parent b7360d0 commit 279404c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/clusterfuzz/_internal/remote_task/remote_task_types.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
import abc
1717
import typing
1818

19-
from clusterfuzz._internal.base.tasks import Task
19+
from clusterfuzz._internal.base import tasks
2020

2121

22-
class RemoteTask(Task):
22+
class RemoteTask(tasks.Task):
2323
"""Represents a single ClusterFuzz task to be executed on a remote worker.
2424
2525
This class holds the necessary information to execute a ClusterFuzz command,
@@ -29,6 +29,7 @@ class RemoteTask(Task):
2929

3030
def __init__(self, command, job_type, input_download_url, pubsub_task=None):
3131
super().__init__(command, input_download_url, job_type)
32+
self.command = command
3233
self.job_type = job_type
3334
self.input_download_url = input_download_url
3435
self.pubsub_task = pubsub_task

src/python/bot/startup/run_bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def schedule_utask_mains():
110110
# progression, minimize...
111111
uncreated_tasks = remote_task_gate.RemoteTaskGate().create_utask_main_jobs(
112112
batch_tasks)
113-
logs.info(
114-
f'Sending back %d uncreated tasks to {tasks.PREPROCESS_QUEUE} queue.')
113+
logs.info(f'Sending back {len(uncreated_tasks)} uncreated tasks to '
114+
f'{tasks.PREPROCESS_QUEUE} queue.')
115115
tasks.bulk_add_tasks(
116116
uncreated_tasks, queue=tasks.PREPROCESS_QUEUE, eta_now=True)
117117

0 commit comments

Comments
 (0)