PHP task queue creation sample (google app engine) -
i cannot seem figure out how can create task task queue, tried failed , task not show in queue.
any suggestions or php sample?
edit: source code comment.
$task = new pushtask( '/workers/worker1.php', ['var1' => 'this one', 'var2' => $seconds], ['delay_seconds' => $seconds] ); $queue = new pushqueue('notify'); $queue->addtasks([$task]);
try following using push queues in php in separate project. if you've been having problems there may unwanted interaction rest of software. also, if simple example fails can add source code question here discussion.
edit: adding source code. leads 2 suggestions. first, pushtask documentation packs optional parameters single array. pushtask call passes 2 arrays, might not work properly. therefore combine parameters single array. second, queue.yaml file requested amy u. still absent, lacking entry looks - name: notify
. show file too?
Comments
Post a Comment