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] Chain doesn't trigger in queue import. 3.1.12 release #2180

Closed
charger513 opened this issue Apr 29, 2019 · 2 comments
Closed

[BUG] Chain doesn't trigger in queue import. 3.1.12 release #2180

charger513 opened this issue Apr 29, 2019 · 2 comments

Comments

@charger513
Copy link

Prerequisites

Versions

  • PHP version: 7.2
  • Laravel version: 5.8
  • Package version: 3.1.12

Description

After update 3.1.12 the method chain in queue import doesn't work anymore. Downgrading to 3.1.11 works perfectly

My Code

$user= auth()->user();

$imports = new PacasImport();
$imports->queue($request->excel)->chain([
    new PrepareNotification($user)
]);
@tntsoft
Copy link

tntsoft commented May 8, 2019

To further explain, the below shows how it works in 3.1.11

[2019-05-08 04:37:10] local.ALERT: Inside StepsImportCompletedHandler - Constructor
[2019-05-08 04:37:18] local.ALERT: [STEPS] Finished processing 1 chunk
[2019-05-08 04:37:20] local.ALERT: [STEPS] Finished processing 1 chunk
[2019-05-08 04:37:21] local.ALERT: [STEPS] Finished processing 1 chunk
[2019-05-08 04:37:21] local.ALERT: Inside StepsImportCompletedHandler - Handler

In 3.1.12, the constructor is called when the job starts but the handler is never called.

Thanks @charger513 , I almost uninstalled the package and went with something else. Downgrading to 3.1.11 makes it work perfectly.

@patrickbrouwers
Copy link
Member

Fixed in 3.1.13

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

No branches or pull requests

3 participants