Skip to content

Commit

Permalink
Fix Job definition (#881)
Browse files Browse the repository at this point in the history
* Fix Job definition

* Update CHANGELOG.md

* Update actions/cache to version 4 to pass CI
  • Loading branch information
rosalieper authored Feb 24, 2025
1 parent 7b1f1de commit 483513d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up helmfile
uses: helmfile/helmfile-action@v1.9.1
- name: Cache Docker layers
uses: actions/cache@v4.0.2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# api

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

## 10x.18.3 - 10 February 2025
- Added new table wiki_daily_metrics
Expand Down
5 changes: 3 additions & 2 deletions app/Jobs/UpdateWikiDailyMetricJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

use App\Wiki;
use \App\Metrics\App\WikiMetrics;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;

//This job is for the daily measurements of metrics per wikibases.
//This is to help in understanding the purpose of active wikis.
class UpdateWikiDailyMetricJob implements ShouldQueue
class UpdateWikiDailyMetricJob extends Job implements ShouldBeUnique
{
use Dispatchable;
public int $timeout = 3600;
public $timeout = 3600;

/**
* Execute the job.
Expand Down

0 comments on commit 483513d

Please sign in to comment.