mirror of
https://github.com/vale981/jobmanager
synced 2025-03-05 09:51:38 -05:00
simple example fix
ALWAYS USE `WITH` STATEMENT FOR SERVER.
This commit is contained in:
parent
bcad5d53d4
commit
94f2149716
1 changed files with 4 additions and 4 deletions
|
@ -49,7 +49,7 @@ class Example_Server(jm.JobManager_Server):
|
|||
|
||||
|
||||
def run_server():
|
||||
server = Example_Server()
|
||||
with Example_Server() as server:
|
||||
for i in range(5000):
|
||||
server.put_arg(np.random.rand())
|
||||
server.start()
|
||||
|
|
Loading…
Add table
Reference in a new issue