Skip to content

Commit 3bcd0ee

Browse files
authored
Merge pull request #54 from CodeProKid/cli-command-fixes
fixing some commands I accidentally broke
2 parents 29aecf7 + 82f287f commit 3bcd0ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CLI.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,11 @@ public function process( $args, $assoc_args ) {
145145
}
146146

147147
\WP_CLI::log( __( 'Starting Processor', 'wp-queue-tasks' ) );
148+
$lock = uniqid();
149+
Utils::lock_queue_process( $queue_name, $lock );
148150
$processor_obj = new Processor();
149-
$processor_obj->run_processor( $queue_name, $queue_term->term_id );
151+
$processor_obj->run_processor( $queue_name, $queue_term->term_id, $lock );
152+
Utils::unlock_queue_process( $queue_name );
150153
\WP_CLI::log( __( 'Processor ran', 'wp-queue-tasks' ) );
151154

152155
}

0 commit comments

Comments
 (0)