Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/Keboola/Console/Command/MassProjectQueueMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class MassProjectQueueMigration extends Command
const ARGUMENT_SOURCE_FILE = 'source-file';

const FEATURE_QUEUE_V2 = 'queuev2';
const FEATURE_ALTERNAT = 'alternat';
const COMPONENT_QUEUE_MIGRATION_TOOL = 'keboola.queue-migration-tool';
const JOB_STATES_FINAL = ['success', 'error', 'terminated', 'cancelled'];

Expand Down Expand Up @@ -80,10 +79,9 @@ private function createMigrationJob(
Client $manageClient,
OutputInterface $output
): ?array {
// set queuev2 and alternat project features
// set queuev2 project feature
try {
$manageClient->addProjectFeature($projectId, self::FEATURE_QUEUE_V2);
$manageClient->addProjectFeature($projectId, self::FEATURE_ALTERNAT);
$storageToken = $this->createStorageToken($manageClient, $projectId);
} catch (ManageClientException $e) {
$output->writeln(sprintf(
Expand Down Expand Up @@ -216,7 +214,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
));

$manageClient->removeProjectFeature($errorJob['projectId'], self::FEATURE_QUEUE_V2);
$manageClient->removeProjectFeature($errorJob['projectId'], self::FEATURE_ALTERNAT);
}

$output->writeln(sprintf('%s migration jobs were terminated or cancelled:', count($terminatedJobs)));
Expand Down