Closed arenowebdev closed 10 years ago
Pretty sure it is priority related in the rocketeer repo...shall I move the issue there?
https://github.com/rocketeers/rocketeer/blob/develop/src/Rocketeer/Plugins/AbstractNotifier.php
<?php
/*
* This file is part of Rocketeer
*
* (c) Maxime Fabre <ehtnam6@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Rocketeer\Plugins;
use Rocketeer\Abstracts\AbstractPlugin;
use Rocketeer\Services\TasksHandler;
use Rocketeer\Tasks\Subtasks\Notify;
/**
* A base class for notification services to extends
*/
abstract class AbstractNotifier extends AbstractPlugin
{
/**
* Register Tasks with Rocketeer
*
* @param \Rocketeer\Services\TasksHandler $queue
*
* @return void
*/
public function onQueue(TasksHandler $queue)
{
// Create the task instance
$notify = new Notify($this->app);
$notify->setNotifier($this);
// Since these have the same -10 priority, it gets fired
// last in first for some reason...??
$queue->addTaskListeners('deploy', 'before', [$notify], -10, true);
$queue->addTaskListeners('deploy', 'after', [$notify], -10, true);
Can confirm this, just tested. Can you reopen this on the Rocketeer repository ? That's where the AbstractNotifier is
Fixed by rocketeers/rocketeer@c3c402eba755422cfa37e8497290a5e504085bbf
Log output: