Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit 9e14e76

Browse files
committed
Revert disableOutput change
Problems with openbasedir restrictions..
1 parent 7b641b3 commit 9e14e76

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
}
99
],
1010
"require": {
11-
"php": ">=5.4.0",
12-
"illuminate/support": "~4.2",
13-
"illuminate/console": "~4.2",
14-
"symfony/process": "~2.5"
11+
"php": ">=5.3.0",
12+
"illuminate/support": "~4.0",
13+
"illuminate/console": "~4.0",
14+
"symfony/process": "~2.3"
1515
},
1616
"autoload": {
1717
"psr-4": {

readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# Laravel 4.2+ Async Queue Driver
1+
# Laravel 4 Async Queue Driver
22
## Push a function/closure to the background.
33

44
Just like the 'sync' driver, this is not a real queue driver. It is always fired immediatly.
55
The only difference is that the closure is sent to the background without waiting for the response.
66
This package is more usable as an alternative for running incidental tasks in the background, without setting up a 'real' queue driver.
77

88
> **Note:** If you are coming from 0.1.0 (or dev-master), you will need to run the migrations, since the new versions uses a database to store the queue.
9-
> If you are on Laravel 4.0 or 4.1, you can still require 0.1.x for the old way.
109
1110
### Install
1211
Add the package to the require section of your composer.json and run `composer update`

src/AsyncQueue.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,14 @@ public function startProcess($jobId)
5353
$environment = $this->container->environment();
5454
$cwd = $this->container['path.base'];
5555
$string = 'php artisan queue:async %d --env=%s ';
56-
5756
if (defined('PHP_WINDOWS_VERSION_BUILD')){
58-
$string = 'start /B ' . $string;
57+
$string = 'start /B ' . $string . ' > NUL';
5958
} else {
60-
$string = 'nohup ' . $string . ' &';
59+
$string = 'nohup ' . $string . ' > /dev/null 2>&1 &';
6160
}
6261

6362
$command = sprintf($string, $jobId, $environment);
64-
6563
$process = new Process($command, $cwd);
66-
$process->disableOutput();
6764
$process->run();
6865
}
6966

0 commit comments

Comments
 (0)