-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task is not executed as async. #15
Comments
Before even looking at the rest of your code ... this chunk right here means you'll never have an |
thank you @ericmann for your reply. Also tested it without having the |
The videos will still need to upload to WordPress before WP can do anything with them. Are you saying the page is waiting to upload to a separate server as well, or just that it's waiting to upload to WordPress first? Second, you've got a couple of things ... out of order perhaps with your code. The Either way, |
Hello @ericmann. As i said on my first post the videos already exist on the server where the wordpress is hosted. You can see it from my code as well.
Therefore I don't need to wait to upload the video on wordpress first and then move it to the other server. So in the
Then inside the The problem is that the Do I need to make any configuration on the server in order to work the queuing? |
I have a similar issue, your asynctask is being used in PixerlYourSite. It makes the page that use this class looks like it is loading even though all the html is already sent to the customer. In new relic it looks like you run a synchronous request using curl to admin-post.php, and the main request is waiting for the sub request to finish. This make some sense so that the subrequest isn't killed by the server when client drops the connection, but on the other hand it doesn't make much sense to run curl at all, as the async call could simply run in the same php process in the shutdown action and this would have the same effect. (if only one action is spawned at a time) My guess is that @giwrgos88 is waiting for his main request to return, and this won't happen until the Async Task process finishes. |
Hello I'm using your package to implement async tasks.The basic idea is that I'm giving the option to the admin from the dashboard to create a post with some related videos. The videos are stored on the server but when he creates the post I want to move the videos that he selected to another platform and after the upload finish to save the response on a table with a foreign key of the post ID.
My problem is that instead of saving the post and then create an async task to upload the video on the platform it keeps wait for the video to be uploaded and then to refresh the page.
Here is my code
At the end if the videos didn't uploaded for any reason I want to execute the same tasks to re-upload them. How I can call the async task?
any help?
The text was updated successfully, but these errors were encountered: