Skip to content

Commit 40eb863

Browse files
committed
kernelci.cli: sched: drop list_jobs command
Remove the `kci sched list_jobs` command as event criteria for running jobs is now specified in the scheduler config entries rather than in the job configs. Signed-off-by: Guillaume Tucker <[email protected]>
1 parent db05c3b commit 40eb863

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

kernelci/cli/sched.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,6 @@
1313
from .base import Args, Command, sub_main
1414

1515

16-
class cmd_list_jobs(Command): # pylint: disable=invalid-name
17-
"""List the jobs to run matching an event provided on stdin"""
18-
opt_args = Command.opt_args + [
19-
{
20-
'name': '--channel',
21-
'help': "Name of the pub/sub channel, or 'node' by default",
22-
},
23-
]
24-
25-
def __call__(self, configs, args):
26-
rconfigs = configs['runtimes']
27-
runtimes = dict(kernelci.runtime.get_all_runtimes(rconfigs, args))
28-
sched = kernelci.scheduler.Scheduler(configs, runtimes)
29-
event = json.loads(sys.stdin.read())
30-
channel = args.channel or 'node'
31-
for job in sched.get_jobs(event, channel):
32-
print(job.name)
33-
return True
34-
35-
3616
class cmd_get_schedule(Command): # pylint: disable=invalid-name
3717
"""Get scheduler configs matching an event provided on stdin"""
3818
opt_args = Command.opt_args + [

0 commit comments

Comments
 (0)