Manages the execution of scripts for tasks.
More...
#include <script_worker.hpp>
|
void | finished () |
| Signal emitted when the script execution finishes. More...
|
|
void | failed (const QString &error) |
| Signal emitted when the script execution fails. More...
|
|
|
| ScriptWorker (const QString ¬ebookPath, const QString &convertedScriptPath, const QString &evalScriptPath, bool parallelizedEvaluation, int timeoutSeconds) |
| Constructs a ScriptWorker object. More...
|
|
Manages the execution of scripts for tasks.
The ScriptWorker class is responsible for converting and executing Jupyter notebooks, as well as evaluating the results. It handles the execution state and emits signals based on the success or failure of the scripts.
◆ ScriptWorker()
ScriptWorker::ScriptWorker |
( |
const QString & |
notebookPath, |
|
|
const QString & |
convertedScriptPath, |
|
|
const QString & |
evalScriptPath, |
|
|
bool |
parallelizedEvaluation, |
|
|
int |
timeoutSeconds |
|
) |
| |
Constructs a ScriptWorker object.
- Parameters
-
notebookPath | Path to the Jupyter notebook file. |
convertedScriptPath | Path to the converted script. |
evalScriptPath | Path to the evaluation script. |
parallelizedEvaluation | Whether the evaluation should run in parallel to the main script. |
timeoutSeconds | Timeout for script execution in seconds. |
◆ executePythonScript
void ScriptWorker::executePythonScript |
( |
const QString & |
scriptPath, |
|
|
const QString & |
name |
|
) |
| |
|
slot |
Executes a given Python script.
◆ failed
void ScriptWorker::failed |
( |
const QString & |
error | ) |
|
|
signal |
Signal emitted when the script execution fails.
- Parameters
-
◆ finished
void ScriptWorker::finished |
( |
| ) |
|
|
signal |
Signal emitted when the script execution finishes.
◆ forceStop
void ScriptWorker::forceStop |
( |
| ) |
|
|
slot |
Forces the stop of all running scripts.
◆ startExecution
void ScriptWorker::startExecution |
( |
| ) |
|
|
slot |
Starts the execution of the scripts.
The documentation for this class was generated from the following files: