Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Laravel Cluster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clinbio
Packagist
Laravel Cluster
Commits
c1d6734b
Verified
Commit
c1d6734b
authored
Mar 17, 2023
by
Dillenn Terumalai
Browse files
Options
Downloads
Patches
Plain Diff
fix: Fixed interface for callbacks and mapped Unknown to no action for queued_at
parent
cbd1471c
No related branches found
No related tags found
No related merge requests found
Pipeline
#6636
passed
Mar 17, 2023
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Contracts/ClusterWithCallbacks.php
+1
-1
1 addition, 1 deletion
src/Contracts/ClusterWithCallbacks.php
src/Repositories/DatabaseJobRepository.php
+5
-3
5 additions, 3 deletions
src/Repositories/DatabaseJobRepository.php
with
6 additions
and
4 deletions
src/Contracts/ClusterWithCallbacks.php
+
1
−
1
View file @
c1d6734b
...
...
@@ -8,7 +8,7 @@ use Dterumal\LaravelCluster\Storage\JobModel;
interface
ClusterWithCallbacks
{
public
function
onFailure
(
JobModel
$clusterJob
,
\Throwable
$e
)
:
void
;
public
function
onFailure
(
JobModel
$clusterJob
):
void
;
public
function
onSuccess
(
JobModel
$clusterJob
):
void
;
...
...
This diff is collapsed.
Click to expand it.
src/Repositories/DatabaseJobRepository.php
+
5
−
3
View file @
c1d6734b
...
...
@@ -44,10 +44,12 @@ class DatabaseJobRepository implements JobRepository
*/
public
function
queued
(
JobModel
$clusterJob
,
string
$datetime
):
void
{
if
(
$datetime
!==
'Unknown'
)
{
$clusterJob
->
update
([
'queued_at'
=>
$datetime
]);
}
}
/**
* Mark the job as failed
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment