Filtering queue results

The queue() method takes an filter argument. The system uses enum internal to represent filtering, but because PHP lacks a native enum type these can't be used i.e. with the SOAP service.

This page lists the possible values for the sort argument with descriptions for their values. Use none for no filtering at all.

An job is in etiher one of three phases. The first one is pending, the seconds is running and the third is finished. These enums filter on phase:

While running the job can have been transitioned to either one of these states:

The finished job can have these states that can be filtered on:

These values filter on pseudo states:

In reality, the interesting filter options are pending, running and completed.