Skip to content
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

[Bug]: Data Importer timeout error then queueing a large job. #417

Open
IronSean opened this issue Jul 12, 2024 · 1 comment
Open

[Bug]: Data Importer timeout error then queueing a large job. #417

IronSean opened this issue Jul 12, 2024 · 1 comment

Comments

@IronSean
Copy link

Expected behavior

When you hit "Execute" on a large datahub job, the operation to queue the items completes without error even if it is slow.

Given sometimes it may take longer than 30 seconds to queue large imports, the web request to Execute the operation should either complete right away then poll the backend regularly to see if it succeeded or failed, or a socket should be opened and kept alive to show if the queueing succeeded or failed. Waiting for the backend to respond to a regular POST request causes the timeout to be able to expire with an error.

Actual behavior

When you queue a large datahub job that takes >30 seconds to queue, the Ext.js hard coded 30s timeout in Pimcore expires, leading to a 503 gateway timeout error on the datahub Execution screen. The queueing will usually continue in the background on the server, and once complete the progress bar will appear with the queue items staged. But for a user, it is confusing because it appears that execution has failed to fill the queue with an error message, only to later show the queue filled.

Steps to reproduce

  1. Create a datahub data-impoter job, maybe of CSV type.
  2. Upload a large CSV file with millions of rows
  3. Go to the Execution tab.
  4. Hit Execute
  5. If the processing to fill the queue takes longer than 30 seconds, a 503 Gateway timeout error will be thrown.
  6. Later the queue will appear with staged items and progress as if there was no error.
@IronSean IronSean added the Bug label Jul 12, 2024
Copy link

github-actions bot commented Aug 2, 2024

Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant