ewoksid13.mcp.tools.submit.submit_test#
- ewoksid13.mcp.tools.submit.submit_test(queue=None)[source]#
Submit a trivial test job to check that job submission works.
Use this tool whenever the user wants to test, check or verify the job submission pipeline (rather than run a real data-processing job). It submits a minimal throwaway ewoks workflow — a single
SumTaskthat adds two integers — and returns the submitted job’s details, so the user can confirm a worker is reachable and accepting jobs.The job can run either on the SLURM cluster or on a Celery worker, chosen from the
queueargument:no queue given (
queueempty/None): submit to the SLURM cluster.a queue name given: submit to that Celery queue (worker).
Parameters#
- queuestr, optional
Name of the Celery queue (worker) to submit the test job to. Leave empty/
Noneto submit to the SLURM cluster instead.
Returns#
- dict
The submitted job’s details:
"worker_type"("slurm"or"celery") and"job_id".
- type queue:
str- param queue:
- rtype:
Dict[str,Any]