drop unused code

This commit is contained in:
Mike McLean 2023-06-28 00:21:16 -04:00 committed by Tomas Kopecek
parent 0d6e5091a9
commit 7d892964de
2 changed files with 0 additions and 26 deletions

View file

@ -56,14 +56,6 @@ def get_log_messages(clauses=None, fields=None):
return LogMessagesQuery(clauses, fields).execute()
def intlist(value):
"""Cast value to a list of ints"""
if isinstance(value, (list, tuple)):
return [int(n) for n in value]
else:
return [int(value)]
def get_tasks_for_host(hostID, retry=True):
"""Get the tasks assigned to a given host"""
hostID = kojihub.convert_value(hostID, cast=int, none_allowed=True)

View file

@ -997,13 +997,6 @@ CREATE INDEX scheduler_task_runs_host ON scheduler_task_runs(host_id);
CREATE INDEX scheduler_task_runs_create_time ON scheduler_task_runs(create_time);
CREATE TABLE scheduler_queue (
task_id INTEGER REFERENCES task (id) NOT NULL PRIMARY KEY,
groomed BOOLEAN NOT NULL DEFAULT FALSE,
run_id INTEGER REFERENCES scheduler_task_runs(id)
) WITHOUT OIDS;
CREATE TABLE scheduler_host_data (
host_id INTEGER REFERENCES host (id) PRIMARY KEY,
data JSONB
@ -1016,17 +1009,6 @@ CREATE TABLE scheduler_sys_data (
) WITHOUT OIDS;
CREATE TABLE scheduler_map (
id SERIAL NOT NULL PRIMARY KEY,
task_id INTEGER REFERENCES task (id) NOT NULL,
host_id INTEGER REFERENCES host (id) NOT NULL,
runnable BOOLEAN NOT NULL,
refused BOOLEAN NOT NULL,
msg TEXT,
check_time TIMESTAMPTZ NOT NULL DEFAULT NOW()
) WITHOUT OIDS;
CREATE TABLE scheduler_task_refusals (
id SERIAL NOT NULL PRIMARY KEY,
task_id INTEGER REFERENCES task (id) NOT NULL,