Giter Club home page Giter Club logo

laravel-async's Introduction

Hi there ๐Ÿ‘‹

I am Saeed and I am a software engineer. I have been writing code since 2010 and after more than 12 years I still need to code.

I am a full-time employee and don't have much time to code but I use every single minute of my free time to code :)

Here you can find some of the work that I am still maintaining.

laravel-async's People

Contributors

saeedvaziry 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  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  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

laravel-async's Issues

Process cleanup handler

I would like to thank you for the package provided as an alternative to workers, which allows, in my development concept, to instantly run the required code asynchronously.

I have an idea for improving the package - it would be nice to have a handler for cleaning up all running processes by the package.
This way we can clean up all running processes without waiting for their timeout when necessary.
For example, like: php artisan queue:clear

Sample code I'm currently using to clean up all processes on linux:
Process::quietly()->run('for pid in $(pgrep -f laravel-async); do kill $pid; done');

What do you think about this idea or are there certain conditions and limitations where integrating cleanup without waiting for a timeout seems like a bad idea?

Request $request can not be pass it as variable

Hello @saeedvaziry nice package, this can be the missing piece that PHP is needing,

if I pass any variable is working fine
AsyncHandler::dispatch(function () use ($user) { logger('test'); });

but if you pass the $request object to AsyncHandler::dispatch fn, I always get a 500 error, it's the expected behave or I'm missing something,

AsyncHandler::dispatch(function () use ($request) { logger('test'); });
image

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.