Giter VIP home page Giter VIP logo

sqs-queue-bundle's People

Contributors

n-m avatar petehouston avatar trandangtri avatar wcomnisky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sqs-queue-bundle's Issues

Make the worker configuration optional

While configuring the bundle, a worker MUST be defined in queue configuration. It should be possible to use the bundle just for publishing messages without the worker.

Consider the use-case:
App A, B, and C populate the queue for a microservice app D. The apps A, B, and C do not need/have the worker; only the publisher. In order to use this bundle in publisher apps, they have to create a fake queue worker.

Add ability to reset `$error`

In case the worker is run as a CLI command and an exception is thrown, the $error property storing the message can never be reset leading to false reports in case in case you use, say LoggerInterface::error() to report it.

Add a method to reset the $error property, like a setter or make the property's visibility to protected.
At the moment, the only way to "reset" it, is to use reflection and set the property to accessible.

Error Handling in AbstractWorker::process

Hi,
I'm having difficulty finding a way to log the exception messages that may occur while processing the message:

    try {
        $result = $this->execute($message);
    } catch (\Exception $e) {
        return false;
    }

Maybe remove the try/catch and let the developer catch his own exceptions?

Thanks.

Cannot run phpunit

PHP version: 7.1.15
Debug logs:
PHP Fatal error: Cannot redeclare static Symfony\Bundle\FrameworkBundle\Test\KernelTestCase::$container as non static TriTran\SqsQueueBundle\Tests\app\KernelTestCase::$container in /app-vendor/tritran/sqs-queue-bundle/Tests/app/KernelTestCase.php on line 16 PHP Stack trace: PHP 1. {main}() /usr/local/bin/phpunit:0 PHP 2. PHPUnit\TextUI\Command::main() /usr/local/bin/phpunit:574 PHP 3. PHPUnit\TextUI\Command->run() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:153 PHP 4. PHPUnit\TextUI\Command->handleArguments() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:169 PHP 5. PHPUnit\Util\Configuration->getTestSuiteConfiguration() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:849 PHP 6. PHPUnit\Util\Configuration->getTestSuite() phar:///usr/local/bin/phpunit/phpunit/Util/Configuration.php:924 PHP 7. PHPUnit\Framework\TestSuite->addTestFiles() phar:///usr/local/bin/phpunit/phpunit/Util/Configuration.php:1022 PHP 8. PHPUnit\Framework\TestSuite->addTestFile() phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php:418 PHP 9. PHPUnit\Util\FileLoader::checkAndLoad() phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php:340 PHP 10. PHPUnit\Util\FileLoader::load() phar:///usr/local/bin/phpunit/phpunit/Util/FileLoader.php:49 PHP 11. include_once() phar:///usr/local/bin/phpunit/phpunit/Util/FileLoader.php:63 PHP 12. spl_autoload_call() /app-vendor/tritran/sqs-queue-bundle/Tests/Functional/Command/QueueAttCommandTest.php:13 PHP 13. Composer\Autoload\ClassLoader->loadClass() /app-vendor/tritran/sqs-queue-bundle/Tests/Functional/Command/QueueAttCommandTest.php:13 PHP 14. Composer\Autoload\includeFile() /app-vendor/tritran/sqs-queue-bundle/vendor/composer/ClassLoader.php:322 PHP 15. include() /app-vendor/tritran/sqs-queue-bundle/vendor/composer/ClassLoader.php:444

Failed to createQueue

AWS version:
"aws/aws-sdk-php-symfony": "~2.0"
Logs:
Found 1 error while validating the input provided for the CreateQueue operation: [Attributes][ContentBasedDeduplication] must be a string or an object that implements __toString(). Found /app-vendor/aws/aws-sdk -php/src/functions.php:252: bool(false)
Solution: set 'ContentBasedDeduplication' => 'false' in TriTran\SqsQueueBundle\Service\QueueManager

Sending Emails

Hi,

I am trying to send an email from worker but the email is not send. Swiftmailer is working correctly, because i can send emails from other commands.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.