Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internalize ResqueStatus, fix deprecated tests. #6

Merged
merged 1 commit into from
May 6, 2022

Conversation

TheMY3
Copy link
Member

@TheMY3 TheMY3 commented May 5, 2022

No description provided.

@TheMY3 TheMY3 force-pushed the internalize-resque-status branch from 9375df3 to 56941dd Compare May 5, 2022 15:16
- uses: "ramsey/composer-install@v2"
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"
- name: Build the stack
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Через docker compose как-то проще за всем следить, и redis теперь нужен,

@@ -622,7 +621,7 @@ public function resume()
$options->allOption = 'Resume all workers';
$options->selectMessage = 'Worker to resume';
$options->actionMessage = 'resuming';
$options->workers = call_user_func([$this->ResqueStatus, 'getPausedWorker']);
$options->workers = call_user_func([$this->ResqueStatus, 'getPausedWorkers']);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Автозамена, так бы убрал call_user_func, не знаю зачем он его везде использовал.

Comment on lines +12 to +14
public const WORKER_KEY = 'ResqueWorker';
public const SCHEDULER_WORKER_KEY = 'ResqueSchedulerWorker';
public const PAUSED_WORKER_KEY = 'PausedWorker';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут сразу и рефакторинг небольшой сделал, публичные т.к. в тестах юзаются.

[$this->stringContains($datas[0]['queue'])],
)->willReturnOnConsecutiveCalls(0, 9, 10, 3);

$this->output
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

С N раза решил взяться и аккуратно переписать его, получилось, теперь нет больше предупреждений.

@TheMY3 TheMY3 mentioned this pull request May 5, 2022
12 tasks
@TheMY3 TheMY3 merged commit cab6d72 into master May 6, 2022
@TheMY3 TheMY3 deleted the internalize-resque-status branch May 6, 2022 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant