Skip to content

Commit 483513d

Browse files
authored
Fix Job definition (#881)
* Fix Job definition * Update CHANGELOG.md * Update actions/cache to version 4 to pass CI
1 parent 7b1f1de commit 483513d

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/docker.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up helmfile
2727
uses: helmfile/helmfile-action@v1.9.1
2828
- name: Cache Docker layers
29-
uses: actions/cache@v4.0.2
29+
uses: actions/cache@v4
3030
with:
3131
path: /tmp/.buildx-cache
3232
key: ${{ runner.os }}-buildx-${{ github.sha }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# api
22

3+
## 10x.18.4 - 19 February 2025
4+
- Fix job definition in UpdateWikiDailyMetricJob class
5+
- Update actions/cache in github workflow to version 4 to pass CI
36

47
## 10x.18.3 - 10 February 2025
58
- Added new table wiki_daily_metrics

app/Jobs/UpdateWikiDailyMetricJob.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
use App\Wiki;
66
use \App\Metrics\App\WikiMetrics;
7+
use Illuminate\Contracts\Queue\ShouldBeUnique;
78
use Illuminate\Contracts\Queue\ShouldQueue;
89
use Illuminate\Foundation\Bus\Dispatchable;
910

1011
//This job is for the daily measurements of metrics per wikibases.
1112
//This is to help in understanding the purpose of active wikis.
12-
class UpdateWikiDailyMetricJob implements ShouldQueue
13+
class UpdateWikiDailyMetricJob extends Job implements ShouldBeUnique
1314
{
1415
use Dispatchable;
15-
public int $timeout = 3600;
16+
public $timeout = 3600;
1617

1718
/**
1819
* Execute the job.

0 commit comments

Comments
 (0)