Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
scm_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
68e95dce
authored
May 14, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
整合启动
parent
952e2e69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
cmd/queue/sync_audit_status/main.go
main.go
cmd/queue/sync_audit_status/main.go
View file @
68e95dce
package
main
package
sync_audit_status
import
(
"encoding/json"
...
...
@@ -165,7 +165,7 @@ func (t *RecvPro) FailAction(dataByte []byte) error {
return
nil
}
func
main
()
{
func
Sync
()
{
defer
func
()
{
if
err
:=
recover
();
err
!=
nil
{
service
.
SendDingTalkRobotToApi
(
fmt
.
Sprintf
(
"%s"
,
err
))
...
...
main.go
View file @
68e95dce
package
main
import
(
"scm_server/cmd/queue/sync_audit_status"
"scm_server/cmd/queue/sync_customer"
"scm_server/cmd/queue/sync_goods"
"scm_server/cmd/queue/sync_in_store"
...
...
@@ -58,7 +59,7 @@ func main() {
go
sync_in_store
.
Sync
()
go
sync_out_store
.
Sync
()
go
sync_status
.
Sync
()
//
go sync_audit_status.Sync()
go
sync_audit_status
.
Sync
()
//定时请求open falcon证明自己没挂
for
{
pushAlive
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment