Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 66de4bc5
authored
Jun 02, 2021
by
Евгений
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавл расчеты баллов
1 parent
511a09a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
app/Console/Commands/CampaignsCheckChange.php
app/Console/Kernel.php
run.sh
app/Console/Commands/CampaignsCheckChange.php
View file @
66de4bc
...
...
@@ -46,7 +46,7 @@ class CampaignsCheckChange extends Command
$factory
=
APIRequest
::
getInstance
(
API
::
YANDEX
);
$factory
->
setToken
(
$token_main
);
$factory
->
getRequest
(
'Change
s
'
,
'checkCampaigns'
)
$factory
->
getRequest
(
'Change'
,
'checkCampaigns'
)
->
call
();
}
...
...
@@ -57,7 +57,7 @@ class CampaignsCheckChange extends Command
$factory
=
APIRequest
::
getInstance
(
API
::
YANDEX
);
$factory
->
setToken
(
$token
);
$factory
->
getRequest
(
'Change
s
'
,
'checkCampaigns'
)
$factory
->
getRequest
(
'Change'
,
'checkCampaigns'
)
->
call
();
}
...
...
app/Console/Kernel.php
View file @
66de4bc
...
...
@@ -39,12 +39,12 @@ class Kernel extends ConsoleKernel
$schedule
->
command
(
DictionariesLoad
::
class
)
->
saturdays
()
->
at
(
'05:00'
);
$schedule
->
command
(
CampaignsCheckChange
::
class
)
->
hourlyAt
(
5
);
$schedule
->
command
(
CampaignsLoadUpdated
::
class
)
->
hourlyAt
(
15
);
$schedule
->
command
(
CampaignsAdd
::
class
)
->
hourlyAt
(
20
);
$schedule
->
command
(
CampaignsUpdate
::
class
)
->
hourlyAt
(
20
);
$schedule
->
command
(
CampaignsResume
::
class
)
->
hourlyAt
(
2
5
);
$schedule
->
command
(
CampaignsSuspend
::
class
)
->
hourlyAt
(
3
0
);
$schedule
->
command
(
CampaignsResume
::
class
)
->
hourlyAt
(
2
0
);
$schedule
->
command
(
CampaignsSuspend
::
class
)
->
hourlyAt
(
2
0
);
$schedule
->
command
(
CampaignsLoadUpdatedChildrenAdGroups
::
class
)
->
hourlyAt
(
35
);
$schedule
->
command
(
CampaignsLoadGroups
::
class
)
->
hourlyAt
(
40
);
$schedule
->
command
(
CampaignsAdd
::
class
)
->
hourlyAt
(
45
);
$schedule
->
command
(
AdGroupsLoadUpdated
::
class
)
->
hourlyAt
(
50
);
}
...
...
run.sh
View file @
66de4bc
...
...
@@ -4,4 +4,3 @@ php artisan queue:work --queue=api &
php artisan queue:work --queue
=
api &
php artisan queue:work --queue
=
api &
php artisan queue:work --queue
=
api &
php artisan schedule:work &
Write
Preview
Markdown
is supported
Attach a file
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 post a comment