Skip to content

Check directory for latest number when returning configuration #50

@tpoliaw

Description

@tpoliaw

The current scan mutation used to get the next scan number checks both the DB and the fallback directory (GDA var) to find the highest number. When querying the currently highest number (via the configuration admin query), only the DB is checked. This should return the highest number of the the two (directory and DB) but not increment either of them.

configuration(beamline: "ixx") {
    latestScanNumber
}

followed by

scan(beamline: "ixx", visit: "...") {
    scanNumber
}

should always return consecutive numbers (assuming no other requests made in between).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions