---
schema_version: "1"
id: d4c496c49358a4f96254fb2470d95861c3f9827372cf8049863d99f7465ffe4c
title: QueueableContext Interface
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_interface_system_queueablecontext.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_system_queueablecontext.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: cfb719aa14ec13a0dd87f4d3fa538c10f1dfb66cd66b0180047e6efd1f352fbe
description: Represents the parameter type of the execute() method in a class that implements the Queueable interface and contains the job ID. This interface is implemented internally by Apex.Returns the ID of the submitted job that uses the Queueable interface.
---
# QueueableContext Interface

Represents the parameter type of the execute() method in a class that implements the Queueable interface and contains the job ID. This interface is implemented internally by Apex.

## Namespace

[System](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_System.htm "The System namespace provides classes and methods for core Apex functionality.")

## QueueableContext Methods

The following are methods for QueueableContext.

- **[getJobId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_system_queueablecontext.htm#apex_System_QueueableContext_getJobId)**  
    Returns the ID of the submitted job that uses the Queueable interface.

### getJobId()

Returns the ID of the submitted job that uses the Queueable interface.

#### Signature

public ID getJobId()

#### Return Value

Type: [ID](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")

The ID of the submitted job.

#### See Also

- [_Apex Developer Guide_: Queueable Apex](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_queueing_jobs.htm "Apex Developer Guide: Queueable Apex - HTML (New Window)")