-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ramses II
committed
Jun 14, 2024
1 parent
3bd6ce8
commit 87bb0b7
Showing
3 changed files
with
210 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1 @@ | ||
# Job Manager | ||
|
||
Este es un sistema de gestión de trabajos que permite añadir, consultar y ejecutar trabajos en cola con soporte para prioridades. | ||
|
||
## Archivos | ||
|
||
- `job_manager.py`: Script principal para gestionar los trabajos. | ||
- `run_jobs.sh`: Script para ejecutar `job_manager.py run` en segundo plano. | ||
- `job_queue.txt`: Archivo que almacena la lista de trabajos en cola. | ||
|
||
## Uso | ||
|
||
### Añadir un Trabajo | ||
|
||
``` | ||
python3 job_manager.py add "<comando>" [prioridad] | ||
``` | ||
|
||
### Consultar el Estado de un Trabajo | ||
|
||
``` | ||
python3 job_manager.py status <ID_trabajo> | ||
``` | ||
|
||
### Ejecutar los Trabajos en Cola | ||
|
||
``` | ||
./run_jobs.sh | ||
``` | ||
|
This file contains 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