Fix action worker to call legacy backup runner directly #11
No reviewers
Labels
No labels
bug
codex
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quentinreytinas/borgmatic-api-nextcloud-aio!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "quentin/fix-high-priority-bug-in-action-worker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
run_nextcloud_daily_backupfromborgmatic_api_app.servicesbut that symbol is not defined, which would causePOST /actions/<name>/runjobs to raise anImportErrorat execution time.Description
_execute_nextcloud_backupinborgmatic_api_app/routes/actions.pyto import and call_aio_daily_backup_run_for_target_joband_buf_getfromborgmatic_api_app.routes.legacydirectly.bodyfrom the validatedActionPolicyfields (restore_after,daily_backup,check_backup,stop_containers,start_containers,automatic_updates,stop_timeout,timeout, optionallyremote_repoandhost_location).log_action_completebehavior.services.run_nextcloud_daily_backupfor background execution to eliminate the import-time failure path.Testing
python -m pytest -q tests/test_security.pywhich failed during collection due to an environment dependency error (ModuleNotFoundError: No module named 'flask'), so tests could not be executed in this environment.routes/actions.pyand relies on existing, tested legacy runner and buffer helpers.Codex Task