1 Star 2 Fork 1

NetAxeClub/SouthDriver

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
worker.py 504 Bytes
Copy Edit Raw Blame History
Will George authored 2020-08-26 16:21 . reorganize project files
import sys
from netpalm import netpalm_fifo_worker, netpalm_pinned_worker
def main(args):
worker_type = args[-1]
if len(args) != 2 or worker_type not in ("pinned", "fifo"):
print(f"Worker must be specified as either 'pinned' or 'fifo'. e.g. `python3 worker.py pinned`")
sys.exit(1)
if worker_type == "pinned":
netpalm_pinned_worker.start_processworkerprocess()
else:
netpalm_fifo_worker.start_worker()
if __name__ == "__main__":
main(sys.argv)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/NetAxeClub/SouthDriver.git
git@gitee.com:NetAxeClub/SouthDriver.git
NetAxeClub
SouthDriver
SouthDriver
master

Search