Skip to content

Fixed - added new '/schedule/availability' endpoint to the API#1550

Merged
mfeit-internet2 merged 1 commit into5.3.0from
issue-305
Aug 1, 2025
Merged

Fixed - added new '/schedule/availability' endpoint to the API#1550
mfeit-internet2 merged 1 commit into5.3.0from
issue-305

Conversation

@valtersg
Copy link
Copy Markdown
Contributor

Implementation for the feature request of #305

Takes in either:

  • start and end (ISO 8601 timestamps)
    or
  • next (ISO 8601 duration)

returns:

{
  'availability': <float>,  # fraction of the time range when the server is free from exclusive tasks
  'start': <ISO 8601 timestamp>,
  'end': <ISO 8601 timestamp>
}

@valtersg valtersg linked an issue Jun 18, 2025 that may be closed by this pull request
@valtersg valtersg requested a review from mfeit-internet2 June 18, 2025 15:49
Copy link
Copy Markdown
Member

@mfeit-internet2 mfeit-internet2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I like what you did with the query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

new pscheduler 'availability' command

2 participants