I’m using the php-imap package and I want to listen for incoming emails.
I’m trying to make a PHP script, I have the script finished but it takes like 10 minutes to finish the process it is designed to do. This is not a problem, however I presume I have to keep the page loaded all this time which is annoying. Can I have it so that I start the process and then come back 10mins later and just view the log file it has generated?
I’m trying to setup a php trigger file that will set off a background process. (see this question)
I made a long script in PHP as such:
I connect to the linux server via putty SSH. I tried to run it as a background process like this:
I already try to find out in Google and Laravel Documentation. But hard to find what difference between
I am trying to run a time consuming script in the background with Laravel 8, but cant quite get it to work. I try to follow the docs from here https://laravel.com/docs/8.x/queues in combination with the tutorial found here: https://learn2torials.com/a/how-to-create-background-job-in-laravel
Create jobs for each API call to receive the data (query jobs).
In an ASP.Net application, the user clicks a button on the webpage and this then instantiates an object on the server through the event handler and calls a method on the object.
The method goes off to an external system to do stuff and this could take a while. So, what I would like to do is run that method call in another thread so I can return control to the user with “Your request has been submitted”.
I am reasonably happy to do this as fire-and-forget, though it would be even nicer if the user could keep polling the object for status.
I am working on an asp.net mvc-5 web application, and I am facing a problem in using Hangfire tool to run long running background jobs. the problem is that if the job execution exceed 30 minutes, then hangfire will automatically initiate another job, so I will end up having two similar jobs running at the same time.