Job Tab#
Adding and configuring a job in PSEOCS allows you to define, submit, and monitor the computational tasks required to run your discrete element method (DEM) or coupled CFD-DEM simulations.
Once you have created a project and uploaded your simulation files to project storage, you can configure jobs that point to target case directories, allocate the necessary AWS cloud compute infrastructure, construct multi-step command execution pipelines, and track execution progress and logs in real time.
The Job List Dashboard#
The Job tab presents a centralized table displaying all computational jobs registered within the project. The dashboard automatically polls the backend every 30 seconds, keeping job execution statuses, resource synchronization states, and runtime observations up to date without requiring manual page refreshes.
The job list table includes the following columns:
Selection Checkbox: Enables individual or bulk selection of jobs for batch operations (such as batch submission or batch deletion).
Job: Displays the job name (click the link to open the job details and editing view) along with the relative path of the target case directory (
process_directory_key) within the project’s S3 bucket.Status: Provides multi-layer visibility into the job’s cluster scheduling, storage synchronization, and Slurm scheduler states:
Cluster Submit Status: Reflects the job’s high-level execution state on AWS ParallelCluster:
Not submitted: The job has been created and configured, but has not yet been submitted to the compute queue.
Submitting: The job submission request is being dispatched to the cluster.
In queue: The job has been submitted to the Slurm scheduler and is waiting for compute nodes to be provisioned or become available.
Running: Compute resources have been allocated and the simulation commands are actively executing.
Cancelling: A user cancellation request is actively stopping the job on the compute cluster.
Completed: All commands in the job pipeline finished successfully.
Failed: The simulation encountered an error or non-zero exit code during execution.
Cancelled: The job was terminated by the user before completion.
Submission failed: An error occurred while communicating with the cluster during submission.
FSx Sync Status: Indicates whether case input and output data are synchronized between the long-term S3 bucket and the high-performance FSx filesystem attached to the compute nodes (Not started, Waiting for sync, Syncing, Sync completed, or Sync failed).
Slurm State: The raw scheduler state reported by Slurm (e.g.,
PENDING,RUNNING,COMPLETED,FAILED,CANCELLED,TIMEOUT).
Progress: Provides real-time activity and health observation for running simulations:
Observed (green badge): The simulation solver is actively advancing time steps and writing log output.
No recent progress (warning badge): The simulation has not produced new log outputs within the expected observation window.
Monitor stale (warning badge): Health telemetry from the compute instance is delayed or temporarily unavailable.
No progress change / Progress unknown: Progress cannot be confirmed yet or is static.
Runtime: Displays the elapsed Slurm execution time alongside the timestamp of the most recent scheduler observation.
Operation: Quick-action buttons for individual jobs:
View log: Opens the log viewer to inspect standard output and error streams in real time.
Submit job: Submits the individual job to the compute queue (visible for unsubmitted jobs).
Duplicate: Creates an exact duplicate of the job configuration (target directory, execution parameters, and command sequences) so you can quickly set up parameter variations.
Delete: Deletes the job record from your workspace (available when the job is not running).
Creating a New Job#
To create a new computational job within your project workspace, follow these steps:
In the project dashboard, select the Job tab and click the New job icon + in the top-right corner.
Choose Job Directory:
Browse the project’s S3 directory structure in the integrated file browser.
You can preview case setup files (such as
in.simulation, OpenFOAM dictionary files, or meshes) directly in the file preview modal before confirming.Select the folder containing your simulation case (e.g.,
chute_wear_case) and click the Set as job directory button.
Job Information:
Job Name: Enter a descriptive identifier for your job (e.g.,
chute_wear_baseline). Job names cannot contain the following characters:$,<,>,",',&,`,\,|,;.Description (Memo): Optional notes describing the run, parameter variations, or purpose of the simulation.
Notify by email when the job completes: Enabled by default. When checked, PSEOCS automatically sends an email notification to your registered address as soon as the job finishes execution (either successfully completed or failed).
Execution time limit (hours): Specifies the maximum wall time allowed for the job (default: 168 hours / 7 days, minimum 1 hour). If the simulation exceeds this time limit, Slurm will automatically terminate the job to prevent unbounded cloud resource consumption.
Instance Type (Purchasing Option): Select the compute capacity model:
On-Demand: Standard dedicated cloud instances with guaranteed availability.
Spot: Utilizes spare AWS compute capacity at substantial discounts (often up to 70–90% cost savings). Spot instances may be interrupted if AWS reclaims capacity, making them well suited for restartable, checkpointed, or exploratory simulation runs.
Compute Queue Settings: Select the hardware compute queue configuration required for your simulation (e.g.,
c7i.xlargefor general CPU computing, GPU-enabled instances likeg5.xlargefor GPU-accelerated workloads such as superquadric DEM simulations, or EFA-enabled instances for multi-node parallel scaling).
Commands Executed (Command Pipeline):
PSEOCS allows you to define a multi-step execution pipeline that runs commands sequentially within the selected case directory (for example, meshing $to$ domain decomposition $to$ solver execution $to$ parallel reconstruction).
Click the Add Command button to append additional command rows to the pipeline.
Drag and drop rows using the order handle to rearrange the execution sequence.
For each command row, configure:
Commands executed: Select the desired executable or solver from the dropdown (e.g.,
blockMesh,decomposePar,washliggghtsFoam,pisoFoam,reconstructPar).Command arguments: Specify any options, flags, or input redirects required by the command (e.g.,
< in.simulationor-parallel).Use MPI: Toggle the switch to execute the command in parallel using the Message Passing Interface (MPI).
Number of processors for MPI: Specify the parallel process count (number of CPU cores) allocated for MPI execution.
Click the icon to delete any unwanted command row.
Click the Create job button to register the job in your project workspace.
Submitting and Managing Jobs#
Single and Bulk Job Submission#
Single Submission: Click the Submit job icon in the operations column for any unsubmitted job.
Bulk Submission: Select the checkboxes next to multiple unsubmitted jobs (or check the header checkbox to select all), and click the Submit selected jobs button in the bulk actions toolbar.
Once submitted, PSEOCS provisions the selected compute instances, syncs the necessary input files from S3 to FSx, and schedules the job through Slurm.
Cancelling a Running Job#
If you need to stop a simulation that is currently queued or running:
Click the job name in the Job list to open the Job Details page.
Click the Cancel job button in the top-right header and confirm the prompt.
PSEOCS dispatches a cancellation workflow to Slurm, cleanly stopping the running processes and updating the status to Cancelling and subsequently Cancelled.
Duplicating a Job#
To create a new job based on an existing configuration:
Click the Duplicate icon next to the job in the Job list.
PSEOCS creates a new job pre-populated with the original job’s target directory, execution settings, and full command pipeline.
You can modify any parameters (such as changing command arguments, MPI process counts, or instance types) and save the new job.
Bulk Deletion#
To remove multiple jobs simultaneously, select their checkboxes in the Job list and click the Delete selected jobs icon in the bulk actions toolbar. Running jobs cannot be deleted until cancelled or completed.
Monitoring and Logs#
Job Details and Runtime Observation#
Clicking any job name in the Job list opens the Job Details view:
Job Information: Displays the assigned S3 process directory, submission status, FSx sync status, and email notification preferences.
Slurm Execution Details: Displays the Slurm Job ID, allocated node count, CPU count, assigned partition, submit time, start time, and observed runtime.
Runtime Warnings: If Slurm requeues a job or reports an execution failure, explanatory warning alerts and state reasons are prominently displayed.
Command Execution Table: Lists each command in the pipeline with its execution order, options, MPI configuration, timestamps (submitted, started, completed), and individual status badges (Not executed, Submitted, or Completed).
Viewing and Downloading Logs#
Each command executed in a job records separate standard output and standard error streams:
Click the View log icon in the Job list or navigate to the logs section on the Job Details page.
For each command in the pipeline, two output panels are provided:
Standard Log (`stdout`): Contains the standard solver output, iteration steps, physical time increments, particle counts, and convergence metrics.
Error Log (`stderr`): Displays diagnostic messages, warnings, or error traces emitted during execution.
Log Truncation and Downloads: For large log files, the interface displays the most recent tail of the log to ensure smooth browser performance. You can download the complete, unabridged log files at any time by clicking Download standard log or Download error log.