Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Support scheduled background task finished #20

Open
wants to merge 7 commits into
base: 3.x
Choose a base branch
from

Conversation

michaeldyrynda
Copy link
Collaborator

Laravel 8.42 introduced a new ScheduledBackgroundTaskFinished event to more accurately identify when a background task finished running.

This PR adds support for that feature, as well as replacing the deprecated dispatch_now with dispatch_sync. Consequently, we'll require larave/framework:^8.36 once tagged.

Unfortunately, because the task runs in the background, we won't have the runtime available, but will be able to calculate it accurately using the timestamp of the ScheduledBackgroundTaskFinished ping in combination with the already-started execution within thenping.me (thanks to the ScheduledTaskStarting event).

@michaeldyrynda michaeldyrynda force-pushed the feature/support-scheduled-background-task-finished branch from f138936 to bd72b0d Compare July 9, 2021 13:56
@michaeldyrynda michaeldyrynda changed the base branch from main to 3.x July 9, 2021 13:57
@michaeldyrynda michaeldyrynda force-pushed the feature/support-scheduled-background-task-finished branch from 781b637 to 39a7076 Compare July 10, 2021 04:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant