# ActivityBucketingStateType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Information about the bucket processing within an activity. It is present in both coordinator/standalone tasks ("buckets-holding" for short) and worker tasks.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
bucket | container WorkBucketType | [0,-1] | Current buckets of work.
numberOfBuckets | property int | [0,1] | How many buckets are there? This is an indicative information, e.
bucketsProcessingRole | property BucketsProcessingRoleType | [0,1] | Role of this task in the processing of the buckets: standalone executor, coordinator, or worker.
scavenging | property boolean | [0,1] | Are we in the scavenging phase? Present only in buckets-holding tasks, relevant only in coordinator-workers scenarios.
scavenger | property boolean | [0,1] | Is this task a scavenger i.
workComplete | property boolean | [0,1] | True if all the work is complete: there are no more buckets to be processed.

- ### Items

  - #### bucket

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Display order:

    Current buckets of work. Some buckets might be present implicitly: if a bucket with sequence number of N is present, it is expected that all unlisted buckets with numbers lower than N are complete. In a similar way, if no free bucket is available and we are not at the end it is expected that some free buckets are yet to be created. Present only in buckets-holding tasks (coordinator or standalone).

  - #### numberOfBuckets

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How many buckets are there? This is an indicative information, e.g. to be used when estimating total progress. Present only in buckets-holding tasks.

  - #### bucketsProcessingRole

    Flags: RAM,runtime,AVals:3

    Multiplicity: [0,1]

    Display order:

    Role of this task in the processing of the buckets: standalone executor, coordinator, or worker. (This is somewhat duplicate to TaskActivityStateType.role but has slightly different meaning, so we keep it here.)

  - #### scavenging

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Are we in the scavenging phase? Present only in buckets-holding tasks, relevant only in coordinator-workers scenarios.

  - #### scavenger

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Is this task a scavenger i.e. will it wait until the work is done, looking for buckets that could be reclaimed? Present only in worker tasks.

  - #### workComplete

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    True if all the work is complete: there are no more buckets to be processed. Present only in buckets-holding tasks.