Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/Jobs/ProcessMediaWikiJobsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function handle(Client $kubernetesClient, MediaWikiHostResolver $resolver
],
],
'spec' => [
// This is set to immediately expire since the name of the job is used as the lock to prevent creating duplicates of this Kubernetes Job for any given Wiki.
'ttlSecondsAfterFinished' => 0,
'template' => [
'metadata' => [
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/SpawnQueryserviceUpdaterJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function handle(Client $kubernetesClient): void {
],
],
'spec' => [
'ttlSecondsAfterFinished' => 14 * 24 * 60 * 60, // 2 weeks
Comment thread
deer-wmde marked this conversation as resolved.
'ttlSecondsAfterFinished' => 24 * 60 * 60 * 7, // 1 week

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no issue moving from 2 weeks to one week here. There is a small chance that this means we'll have all been away and are unable to inspect something here but that's probably the case with any length of time we pick

'template' => [
'metadata' => [
'name' => 'run-qs-updater',
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/WikiEntityImportJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private function constructSpec(): array {
],
],
'spec' => [
'ttlSecondsAfterFinished' => 0,
'ttlSecondsAfterFinished' => 24 * 60 * 60 * 7, // 1 week

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably does make sense to keep these around for a while

'backoffLimit' => 0,
'template' => [
'metadata' => [
Expand Down
Loading