topcoder-platform / scheduler-api

Scheduler API that interfaces with Dynamodb
0 stars 7 forks source link

Phases are closing when they shouldn't #18

Open ajefts opened 3 years ago

ajefts commented 3 years ago

I created a few test challenges in dev and the Registration/Submission phases seem to have closed shortly after they opened.

Here is an example: https://challenges.topcoder-dev.com/projects/17062/challenges/5a33a6d3-1595-4fc2-9f5c-23b5d940b303/view

Note in Online Review that the "Scheduled End Date" has not been reached on either phase.

STEPS TO REPRODUCE:

  1. Create a dev challenge, task, or F2F via work manager.
  2. Activate the challenge
  3. Make sure the start date in Work Manager is set to the past or a time that will open shortly.
  4. Let the challenge open automatically
  5. Monitor the status of the phases to see if they switch to closed before they should.
ajefts commented 3 years ago

fyi @rootelement

ajefts commented 3 years ago

Update: I think I just figured out what triggers it. As soon as the start date hits (or if it's in the past) it's updated registration and submission to Closed.

ThomasKranitsas commented 3 years ago

I'm currently working on it... I've added a couple checks so now:

I'm currently thinking how to handle the scenario when: