Project

General

Profile

Actions

Feature #38226

open

Implement cron endpoint or script to allow calling scheduled tasks

Added by Echedey López Romero about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Hi.

I am unsure where to classify this issue because it covers a wide range of uses.

Currently, I am managing some Redmine setups over Docker based on the https://github.com/docker-library/redmine image.

Several of these setups, make impossible determining in which node the instance will run or even controlling the service in order to program calls on cron requests in the nodes to perform scheduled tasks in the instances.

Things such as reminders don't work with this setup and, even when I performed a workaround (https://github.com/docker-library/redmine/issues/64#issuecomment-1303047095), this is not ideal for high availability, as it would finish running several cron instances duplicating the issue and further complexity would be added beyond reasonable to fix that with yet another workaround.

It happens that Nextcloud has 3 ways to run its internal tasks:
  • Via AJAX while loading the web interface
  • Via external http call using some custom service such as easyCron or your own machine to an endpoint
  • Via cron in the same machine

So, given this situation, I am suggesting to implement some kind of endpoint to call and execute scheduled tasks via external http calls.

Actions #1

Updated by Echedey López Romero about 1 year ago

Additionally, this approach could also work on Hostings services (these were you don't have permission to access the underlaying machine).

Actions #2

Updated by Go MAEDA about 1 year ago

  • Category set to REST API
Actions

Also available in: Atom PDF