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

added apscheduler #977

Closed
wants to merge 5 commits into from
Closed

added apscheduler #977

wants to merge 5 commits into from

Conversation

nrjadkry
Copy link
Member

@nrjadkry nrjadkry commented Nov 7, 2023

No description provided.

@nrjadkry
Copy link
Member Author

nrjadkry commented Nov 9, 2023

@spwoodcock
I just realized that date trigger adds a job in the appscheduler_jobs table it creates in the db and then removes it immediately.
This might be a small problem if we want to use this table for our usecase.

@spwoodcock
Copy link
Member

Do we need to trigger on date? This is for scheduling things in the future.

I think our use case is just to be able to return the job id, so we can queue, cancel, or pause the job.

@nrjadkry
Copy link
Member Author

@spwoodcock
There are 3 different triggers in apscheduler.

  1. Interval trigger: Schedules a job to run at fixed intervals.
  2. Cron trigger
    Schedules a job based on a cron-like expression.
    Options: year, month, day, week, day_of_week, hour, minute, second: Specify the cron expression.
  3. Date trigger.
    Schedules a job to run once at a specific date and time.

Date trigger is the best one for our use case, but it creates the job in the db and then removes it immediately after the job is started.

Are there any other triggers that I have missed?

@spwoodcock
Copy link
Member

See #912

We decided not to proceed with this.

@spwoodcock spwoodcock closed this Nov 20, 2023
@spwoodcock spwoodcock deleted the add_apscheduler branch November 29, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Termination of background tasks when user cancels the project setup activity
2 participants