Merge pull request #35000 from nextcloud/bugfix/34959/fix-cron-warning-with-time-insensitive-jobs

Fix cron warning with time insensitive jobs
This commit is contained in:
Joas Schilling 2022-11-07 15:38:31 +01:00 committed by GitHub
commit ebbc0faf6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -29,11 +29,11 @@
{{ t('settings', 'Last job execution ran {time}. Something seems wrong.', {time: relativeTime}) }}
</NcNoteCard>
<NcNoteCard v-else-if="longExecutionNotCron" type="warning">
<NcNoteCard v-else-if="longExecutionCron" type="warning">
{{ t('settings', "Some jobs have not been executed since {maxAgeRelativeTime}. Please consider increasing the execution frequency.", {maxAgeRelativeTime}) }}
</NcNoteCard>
<NcNoteCard v-else-if="longExecutionCron" type="warning">
<NcNoteCard v-else-if="longExecutionNotCron" type="warning">
{{ t('settings', "Some jobs have not been executed since {maxAgeRelativeTime}. Please consider switching to system cron.", {maxAgeRelativeTime}) }}
</NcNoteCard>
@ -138,7 +138,7 @@ export default {
return Date.now() / 1000 - this.cronMaxAge > 12 * 3600 && this.backgroundJobsMode !== 'cron'
},
longExecutionCron() {
return Date.now() / 1000 - this.cronMaxAge > 12 * 3600 && this.backgroundJobsMode === 'cron'
return Date.now() / 1000 - this.cronMaxAge > 24 * 3600 && this.backgroundJobsMode === 'cron'
},
},
methods: {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long