nextcloud / nextcloud/workflow_script
Request: Run certain commands only once for multiple files
Open
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:
- The camera uploads a larger group of photos within a short time.
- Each photo creates a task
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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