Skip to content

Commit

Permalink
refactor: use codely for commands instead of codelytv
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezcasas committed Nov 20, 2023
1 parent 970c3df commit 6377381
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

final class ConsumeMySqlDomainEventsCommand extends Command
{
protected static $defaultName = 'codelytv:domain-events:mysql:consume';
protected static $defaultName = 'codely:domain-events:mysql:consume';

public function __construct(
private readonly MySqlDoctrineDomainEventsConsumer $consumer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

final class ConfigureRabbitMqCommand extends Command
{
protected static $defaultName = 'codelytv:domain-events:rabbitmq:configure';
protected static $defaultName = 'codely:domain-events:rabbitmq:configure';

public function __construct(
private readonly RabbitMqConfigurer $configurer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

final class ConsumeRabbitMqDomainEventsCommand extends Command
{
protected static $defaultName = 'codelytv:domain-events:rabbitmq:consume';
protected static $defaultName = 'codely:domain-events:rabbitmq:consume';

public function __construct(
private readonly RabbitMqDomainEventsConsumer $consumer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class GenerateSupervisorRabbitMqConsumerFilesCommand extends Command
private const EVENTS_TO_PROCESS_AT_TIME = 200;
private const NUMBERS_OF_PROCESSES_PER_SUBSCRIBER = 1;
private const SUPERVISOR_PATH = __DIR__ . '/../../../../build/supervisor';
protected static $defaultName = 'codelytv:domain-events:rabbitmq:generate-supervisor-files';
protected static $defaultName = 'codely:domain-events:rabbitmq:generate-supervisor-files';

public function __construct(private readonly DomainEventSubscriberLocator $locator)
{
Expand Down Expand Up @@ -68,7 +68,7 @@ private function template(): string
{
return <<<EOF
[program:codelytv_{queue_name}]
command = {path}/apps/mooc/backend/bin/console codelytv:domain-events:rabbitmq:consume --env=prod {queue_name} {events_to_process}
command = {path}/apps/mooc/backend/bin/console codely:domain-events:rabbitmq:consume --env=prod {queue_name} {events_to_process}
process_name = %(program_name)s_%(process_num)02d
numprocs = {processes}
startsecs = 1
Expand Down

0 comments on commit 6377381

Please sign in to comment.