Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make matching algorithm run at end of application-period #140

Open
julian-ao opened this issue Jul 20, 2024 · 1 comment · May be fixed by #163
Open

Make matching algorithm run at end of application-period #140

julian-ao opened this issue Jul 20, 2024 · 1 comment · May be fixed by #163

Comments

@julian-ao
Copy link
Member

julian-ao commented Jul 20, 2024

Can either use cron jobs (https://www.npmjs.com/package/node-cron) or setTimeout:

const executeTask = () => {
  console.log('Task executed');
};

const scheduleTask = (date) => {
  const now = new Date();
  const delay = date.getTime() - now.getTime();

  if (delay > 0) {
    setTimeout(executeTask, delay);
  }
};

const specificDate = new Date('2024-07-20T14:30:00'); // Specify the date and time
scheduleTask(specificDate);
@jorgengaldal
Copy link
Collaborator

Make a Python script that:

  • fetches from the api
  • Constructs the Python classes and runs the algorithm
  • pushes matched meetings to the api

@jorgengaldal jorgengaldal self-assigned this Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants