Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
3fa35056
Commit
3fa35056
authored
Aug 28, 2021
by
孟维甫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature_mwf_azkaban' into 'test'
Feature mwf azkaban See merge request bp/goods!17
parents
c0abdb16
a7d3fd75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Goodstoes.php
application/modules/Job/controllers/Goodstoes.php
+1
-1
start_job.sh
deploy/start_env/start_job.sh
+6
-1
No files found.
application/modules/Job/controllers/Goodstoes.php
View file @
3fa35056
...
@@ -28,7 +28,7 @@ class GoodstoesController extends Job
...
@@ -28,7 +28,7 @@ class GoodstoesController extends Job
private
function
getGoodsSkuIdList
()
private
function
getGoodsSkuIdList
()
{
{
return
GoodsSku
::
select
(
"goods_sku_id"
);
return
GoodsSku
::
select
(
"goods_sku_id"
,
[
'LIMIT'
=>
10
]
);
}
}
private
function
toEs
(
$goodsSkuIds
)
private
function
toEs
(
$goodsSkuIds
)
...
...
deploy/start_env/start_job.sh
View file @
3fa35056
#!/bin/bash
#
set
-xeuo
pipefail
# 参考: https://mp.weixin.qq.com/s/VmM_U4RefRBHwIw8NegC8Q
# 运行环境env
# 运行环境env
if
[[
X
"
$1
"
==
X
""
]]
;
then
if
[[
X
"
$1
"
==
X
""
]]
;
then
echo
"env cannot be empty"
echo
"env cannot be empty"
...
@@ -42,7 +47,7 @@ chmod -R 755 /home/services/api.go2yd.com/logs
...
@@ -42,7 +47,7 @@ chmod -R 755 /home/services/api.go2yd.com/logs
sysctl
-w
net.core.somaxconn
=
65535
sysctl
-w
net.core.somaxconn
=
65535
php api.go2yd.com/htdocs/Website/public/job.php
goodstoes index
"t=
$2
&n=
$3
&j=
$2
"
php api.go2yd.com/htdocs/Website/public/job.php
"
$2
"
"
$3
"
"
$4
"
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
then
then
...
...
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