nextcloud / nextcloud/workflow_script

Request: Run certain commands only once for multiple files

Open
#28 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
89
Forks
19
Avg merge
6h 38m
Merged PRs (30d)
3

Description

Currently a task is added to the scheduler for every individual file.
This can be inefficient.

Example:

  1. The camera uploads a larger group of photos within a short time.
  2. Each photo creates a task
  3. All tasks get run one after the other on the next cron run.

Most scripts need to have the occ files:scan after their work, how ever that can be slow.

Idea:

Add a way that a script only gets run after all other tasks in one cron intrerval got run.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where each uploaded file creates a scheduler task and how the next cron interval executes those tasks. Review how scripts that invoke occ files:scan are handled, and confirm what completion should mean when multiple tasks belong to the same interval.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.