Skip to content

Commit

Permalink
Removing test schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Sep 28, 2023
1 parent e57c642 commit 11cdcaf
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/dispatch/feedback/service/scheduled.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,29 +117,3 @@ def oncall_shift_feedback(db_session: SessionLocal, project: Project, hour: int)
schedule_id=schedule_id,
hour=hour,
)


# ****** DELETE ME
@scheduler.add(every(1).minutes, name="oncall-shift-feedback-test")
@timer
@scheduled_project_task
def find_schedule_and_send_test(*, db_session: SessionLocal, project: Project):
"""
Given PagerDuty schedule_id, determine if the shift ended for the previous oncall person and
send the health metrics feedback request
"""
current_oncall = {"email": "[email protected]", "shift_end": "2023-09-27T10:00:00Z", "schedule_name": "TEST ONCALL"}

individual = individual_service.get_by_email_and_project(
db_session=db_session, email=current_oncall["email"], project_id=project.id
)

log.debug("**** SENDING")
send_oncall_shift_feedback_message(
project=project,
individual=individual,
schedule_id="XXXXX",
shift_end_at=current_oncall["shift_end"],
schedule_name=current_oncall["schedule_name"],
db_session=db_session,
)

0 comments on commit 11cdcaf

Please sign in to comment.