Skip to main content

environment_pending_work

Creates, updates, deletes, gets or lists an environment_pending_work resource.

Overview​

Nameenvironment_pending_work
TypeResource
Idrailway.environments.environment_pending_work

Fields​

The following fields are returned by SELECT queries:

One row per ProjectOperation.

NameDatatypeDescription
idstring
environment_idstring
workflow_idstring
actorobjectProjectOperationActor object
changesobject
finished_atstring (date-time)
kindstring
parent_refstring
started_atstring (date-time)
statusstring (applied, applying, failed, staged)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectenvironment_idPending project-mutating work for an environment. Unions registered OperationSources (patches, standalone deploys) and returns parent rows only — not a stored inbox. Backed by the Railway GraphQL query environmentPendingWork.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environment_idstring

SELECT examples​

Pending project-mutating work for an environment. Unions registered OperationSources (patches, standalone deploys) and returns parent rows only — not a stored inbox. Backed by the Railway GraphQL query environmentPendingWork.

SELECT
id,
environment_id,
workflow_id,
actor,
changes,
finished_at,
kind,
parent_ref,
started_at,
status
FROM railway.environments.environment_pending_work
WHERE environment_id = '{{ environment_id }}' -- required
;