Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion diracx-tasks/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ testing = ["diracx-testing", "fakeredis"]

[project.scripts]
diracx-tasks = "diracx.tasks.task_run:main"
diracx-task-run = "diracx.tasks.task_run:main"

[project.entry-points."diracx.dbs.sql"]
TaskDB = "diracx.tasks.plumbing.persistence:TaskDB"
Expand Down
3 changes: 0 additions & 3 deletions diracx-tasks/src/diracx/tasks/task_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
diracx-tasks submit <entry_point> [--args JSON] [--kwargs JSON] [--redis-url URL]
diracx-tasks worker [--max-concurrent-tasks N] [--redis-url URL]
diracx-tasks scheduler [--redis-url URL]

Backward-compatible alias:
diracx-task-run <subcommand> [...]
"""

from __future__ import annotations
Expand Down
2 changes: 0 additions & 2 deletions docs/admin/how-to/tasks/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ The scheduler is a singleton process responsible for submitting periodic tasks a
diracx-tasks scheduler --redis-url redis://redis-host:6379
```

`diracx-task-run` remains supported as a backward-compatible alias during migration.

Only one scheduler instance should run at a time. This is enforced by a Redis mutex — if a second scheduler starts, it will wait for the first to release the lock before taking over.

## Helm chart configuration
Expand Down
6 changes: 2 additions & 4 deletions docs/admin/how-to/tasks/run-task-manually.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

The `diracx-tasks call` command executes a single task interactively, bypassing the broker. This is useful for debugging, manual recovery, and verifying task behaviour.

`diracx-task-run` remains supported as a backward-compatible alias during migration.

## Basic usage

```bash
Expand Down Expand Up @@ -45,13 +43,13 @@ Both tasks talk to the job databases, so the relevant `DIRACX_DB_URL_*`,
Run the monitor once to pick up all `Received` jobs:

```bash
diracx-task-run call jobs:DummyJobExecutorMonitorTask
diracx-tasks call jobs:DummyJobExecutorMonitorTask
```

Or simulate the execution of a single job by passing its job ID:

```bash
diracx-task-run call jobs:DummyJobExecutorTask --args '[42]'
diracx-tasks call jobs:DummyJobExecutorTask --args '[42]'
```

## Debugging
Expand Down
2 changes: 0 additions & 2 deletions docs/dev/explanations/tasks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ The `diracx-tasks` command provides four subcommands:
- **`worker`** — start a worker process that consumes tasks from the broker.
- **`scheduler`** — start the singleton scheduler that submits periodic tasks and promotes delayed tasks.

`diracx-task-run` remains supported as a backward-compatible alias during migration.

This command is provided by `diracx-tasks` package and not `diracx-cli` as it is expected to be ran on the same infrastructure as the DiracX tasks workers (e.g. in debug pod in Kubernetes).

### Extension pattern
Expand Down
Loading