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

Middleware fix for released jobs #36

Merged
merged 1 commit into from
Aug 5, 2022
Merged

Middleware fix for released jobs #36

merged 1 commit into from
Aug 5, 2022

Conversation

DimaVIII
Copy link
Contributor

@DimaVIII DimaVIII commented Jul 28, 2022

Regarding: #35

Fix for: Jobs which get released back into the queue are getting marked as finished instead of "retrying".

Retrying status makes more sense here as setting the jobs as "queued" will be confusing.
This will indicate that the job has been tried already.

The method markAsQueued was still added to the model as there are scenarios where it's useful to have this method if creating custom/additional middleware for this package.

started_at is not set to null to to display when the job was started last time.

@mateusjunges mateusjunges merged commit dbf157b into mateusjunges:v1.5.x Aug 5, 2022
mateusjunges added a commit that referenced this pull request Jan 30, 2024
* allow to dispatch jobs without related models

* Fix styling

* Fix dispatchWithoutTracking helper to work without a model

* docblock

* wip

* Fix styling

* Middleware check for released jobs and new status: STATUS_RETRYING (#36)

* Fix styling

* Update changelog

* Update README.md

* Revert "Update README.md"

This reverts commit 53d0968.

* fix docs link (#39)

* Laravel 10.x Compatibility (#41)

* Bump dependencies for Laravel 10

* Update GitHub Actions for Laravel 10

* Update run-tests.yml

* Update composer.json

---------

Co-authored-by: Mateus Junges <mateus@junges.dev>

* Remove composer.lock

* Drop support for L8 and PHP 7.4

* Add note about support php and laravel versions

* Update changelog

* Fix docs

* Update gitignore

* Use FQCN as TrackedJob name

* Improve docblocks and return types

* wip

* Fix styling

* Update changelog

* Fix styling

* Register helpers

* Update database

* Upgrade min php to 8.2

* Improvements to track job without model

* Fix styling

* Drop support for laravel 9

* wip

* Fix styling

* Fix docs

* update min php version on docs

* wip

* Update docs

---------

Co-authored-by: mateusjunges <mateusjunges@users.noreply.github.com>
Co-authored-by: Dima <DimaVIII@users.noreply.github.com>
Co-authored-by: Laravel Shift <shift@laravelshift.com>
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

Successfully merging this pull request may close these issues.

2 participants