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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ddbd-34792.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ddbd-34792.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?