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 4453a9d9
authored
Jul 08, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.veeble.ru/pismenov/yourroomads
2 parents
5457f15a
98f7cd24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
app/Jobs/ProcessCallLimitedAPI.php
app/Jobs/ProcessCallLimitedAPI.php
View file @
4453a9d
...
...
@@ -52,18 +52,18 @@ class ProcessCallLimitedAPI implements ShouldQueue//, ShouldBeUnique
//резервируем на это количетсво
$limitId
=
$limits
->
doRezerv
(
$this
->
api
,
$objects
);
//вызываем очередь получения данных от АПИ
//туда передаем сохраненный лимит
//там уже либо будет удален, если не удастся выполнить запрос
//либо обновятся данные
dispatch
(
new
ProcessCallAPI
(
$limitId
,
$this
->
api
))
->
onQueue
(
'api'
);
}
catch
(
\Exception
$e
){
//нет свободных баллов, замораживаем до следующего часа
Log
::
debug
(
$e
);
$this
->
reRunHour
();
return
;
}
//вызываем очередь получения данных от АПИ
//туда передаем сохраненный лимит
//там уже либо будет удален, если не удастся выполнить запрос
//либо обновятся данные
dispatch
(
new
ProcessCallAPI
(
$limitId
,
$this
->
api
))
->
onQueue
(
'api'
);
}
// /**
...
...
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