mirror of
https://gitea.com/gitea/act_runner.git
synced 2024-12-27 19:38:20 +01:00
d3d56ed0ef
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
13 lines
178 B
Go
13 lines
178 B
Go
package runtime
|
|
|
|
import (
|
|
"sync"
|
|
)
|
|
|
|
var globalTaskMap sync.Map
|
|
|
|
// finishTask removes the task from global map
|
|
func finishTask(buildID int64) {
|
|
globalTaskMap.Delete(buildID)
|
|
}
|