mirror of https://github.com/skygpu/skynet.git
remove unneeded if block
parent
1cbb1dd7f3
commit
a452065779
|
@ -135,19 +135,12 @@ def enqueue(
|
||||||
})
|
})
|
||||||
binary = ''
|
binary = ''
|
||||||
|
|
||||||
if not kwargs['jobs']:
|
for i in kwargs['jobs']:
|
||||||
ec, out = cleos.push_action(
|
ec, out = cleos.push_action(
|
||||||
'telos.gpu', 'enqueue', [account, req, binary, reward], f'{account}@{permission}'
|
'telos.gpu', 'enqueue', [account, req, binary, reward], f'{account}@{permission}'
|
||||||
)
|
)
|
||||||
print(collect_stdout(out))
|
print(collect_stdout(out))
|
||||||
assert ec == 0
|
assert ec == 0
|
||||||
else:
|
|
||||||
for i in kwargs['jobs']:
|
|
||||||
ec, out = cleos.push_action(
|
|
||||||
'telos.gpu', 'enqueue', [account, req, binary, reward], f'{account}@{permission}'
|
|
||||||
)
|
|
||||||
print(collect_stdout(out))
|
|
||||||
assert ec == 0
|
|
||||||
|
|
||||||
@skynet.command()
|
@skynet.command()
|
||||||
@click.option('--loglevel', '-l', default='INFO', help='Logging level')
|
@click.option('--loglevel', '-l', default='INFO', help='Logging level')
|
||||||
|
|
Loading…
Reference in New Issue