twin-bridges / nornir_course

Nornir Online Course
Apache License 2.0
75 stars 26 forks source link

Still a bunch of code that uses num_workers #15

Open ktbyers opened 3 years ago

ktbyers commented 3 years ago

$ grep num_workers find . -name '*.py' ./bonus1/collateral/netmiko_napalm/bgp_project.py: result = eos_devices.run(task=render_configs, num_workers=10) ./bonus1/collateral/netmiko_napalm/bgp_project.py: result = eos_devices.run(task=napalm_merge_cfg, num_workers=10) ./bonus1/collateral/netmiko_napalm/bgp_project.py: result = eos_devices.run(task=verify_bgp, num_workers=10) ./bonus1/collateral/netmiko_prompting/netmiko_prompting.py: nr.run(task=netmiko_prompting, num_workers=1) ./bonus1/collateral/napalm_direct_task/napalm_direct_jnpr.py: nr.run(task=direct, num_workers=1) ./bonus1/collateral/napalm_direct_task/napalm_direct_eapi.py: nr.run(task=direct, num_workers=1) ./bonus1/collateral/napalm_nxos_ssh/napalm_nxos.py: nr.run(task=direct, num_workers=1) ./bonus1/collateral/netmiko_direct_task/netmiko_direct.py: nr.run(task=netmiko_direct, num_workers=1) ./class4/exercises/exercise2/exercise2c.py: runner={"plugin": "threaded", "options": {"num_workers": 10}}, ./class4/exercises/exercise1/exercise1b.py: runner={"plugin": "threaded", "options": {"num_workers": 10}}, ./class4/collateral/custom_tasks_and_results/custom_tasks_p4.py: runner={"plugin": "threaded", "options": {"num_workers": 15}}, ./tests/test_class2.py: assert workers["num_workers"] == 5 ./tests/test_class2.py: assert workers["num_workers"] == 5 ./tests/test_class2.py: assert workers["num_workers"] == 5 ./class2/exercises/exercise5/exercise5d.py: runner={"plugin": "threaded", "options": {"num_workers": 15}}, ./class2/exercises/exercise1/exercise1a.py: workers = 20 if workers == {} else workers["num_workers"] ./class2/exercises/exercise1/exercise1c.py: print(f"\nNumber of workers: {workers['num_workers']}\n") ./class2/exercises/exercise1/exercise1d.py: runner={"plugin": "threaded", "options": {"num_workers": 15}}, ./class2/exercises/exercise1/exercise1d.py: print(f"\nNumber of workers: {workers['num_workers']}\n") ./class2/exercises/exercise1/exercise1b.py: print(f"\nNumber of workers: {workers['num_workers']}\n") ./class6/collateral/troubleshooting/test_napalm_slog.py: results = nr.run(task=napalm_custom, num_workers=1)

ktbyers commented 3 years ago

Also need to make sure the TEST code is not missing errors that are hidden in the logging.