You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 2, 2024. It is now read-only.
I'm trying to run WP-Gears from WP-CLI, but I can't get it to trigger. I've installed gearman following your guide. Verified that it work using test-client.php and test-worker.php.
2015-09-06 23:59:03,922 INFO exited: wxr2pdf_wp_gears_workers-04 (exit status 0; expected)
2015-09-06 23:59:04,926 INFO spawned: 'wxr2pdf_wp_gears_workers-04' with pid 21341
2015-09-06 23:59:05,929 INFO success: wxr2pdf_wp_gears_workers-04 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
The wp cli works when I call the "callback" directly from mytest():
The callback function for the action is only ever loaded if WP_CLI is defined. Since gearman workers are not run in a WP-CLI context, I think you don't have the callback available to the workers. Try moving the callback for your action to a file that is loaded in all contexts (not just wp-cli) and I think it will work.
Hi,
I'm trying to run WP-Gears from WP-CLI, but I can't get it to trigger. I've installed gearman following your guide. Verified that it work using test-client.php and test-worker.php.
Here's my test-plugin: https://gist.github.com/soderlind/a27527c3ed6545f594d7
Here's the output from supervisor.log:
The wp cli works when I call the "callback" directly from mytest():
The text was updated successfully, but these errors were encountered: