Commit 3fa35056 authored by 孟维甫's avatar 孟维甫

Merge branch 'feature_mwf_azkaban' into 'test'

Feature mwf azkaban

See merge request bp/goods!17
parents c0abdb16 a7d3fd75
...@@ -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)
......
#!/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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment