feat(tasks): support both diracx-tasks and diracx-task-run (phase 1, #975) - #1011
Open
mmascher wants to merge 5 commits into
Open
feat(tasks): support both diracx-tasks and diracx-task-run (phase 1, #975)#1011mmascher wants to merge 5 commits into
mmascher wants to merge 5 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Implements phase 1 of the CLI rename in diracx-tasks by adding a new primary console script name (diracx-tasks) while keeping the existing diracx-task-run entry point as a backward-compatible alias, and updates local scripts/docs to prefer the new name.
Changes:
- Added the
diracx-tasksconsole script alongside the existingdiracx-task-runalias. - Updated local launcher scripts (and pixi task descriptions) to use
diracx-tasks. - Updated developer/admin documentation to prefer
diracx-tasksand added migration compatibility notes where relevant.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| run_local.sh | Switches local stack startup commands from diracx-task-run to diracx-tasks. |
| run_local_tasks.sh | Updates the local wrapper script to exec diracx-tasks. |
| pixi.toml | Updates pixi task description to refer to diracx-tasks. |
| docs/dev/reference/tasks.md | Updates CLI examples to use diracx-tasks. |
| docs/dev/reference/pixi-tasks.md | Updates pixi task docs to prefer diracx-tasks. |
| docs/dev/how-to/add-a-task.md | Updates interactive task execution examples to use diracx-tasks. |
| docs/dev/explanations/tasks/index.md | Renames the documented CLI to diracx-tasks and adds a migration alias note. |
| docs/dev/explanations/tasks/class-details.md | Updates interactive mode references to diracx-tasks call. |
| docs/admin/how-to/tasks/run-task-manually.md | Updates admin runbook to use diracx-tasks and adds alias migration note. |
| docs/admin/how-to/tasks/configure.md | Updates worker/scheduler examples to use diracx-tasks and adds alias migration note. |
| docs/admin/explanations/tasks.md | Updates operational explanation references to diracx-tasks call. |
| diracx-tasks/src/diracx/tasks/task_run.py | Updates CLI usage header to show diracx-tasks and documents diracx-task-run as an alias. |
| diracx-tasks/pyproject.toml | Adds diracx-tasks as an additional console script pointing to the same entry point. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Documentation build overview
8 files changed ·
|
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
for more information, see https://pre-commit.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements Phase 1 of issue #975 by introducing the new CLI name while preserving backward compatibility with the old one.
What changed
Migration plan context (3 phases)
Why this is safe
Rollback safety note
If any environment is still wired to diracx-task-run, it will continue to function in Phase 1.
In case of operational issues with the new command name rollout, usage can be temporarily reverted to diracx-task-run with no packaging change required in this PR.
Validation
Closes
Fixes #975