Golang asynchronous task

problem description

I have developed a web application with beego here. In order to realize the function of calling system commands through web, as it takes a long time to execute system commands, is there any good solution

one"s own train of thought

when developing with python, python has a framework and celery,go has a similar implementation

Feb.15,2022

gocelery


os package should have related api


add job, in queue and then use go to open the program to process. This allows concurrent execution.


search me to see if goworker can meet the demand

Menu