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

GP-15420: Add task scheduling. #41

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

GP-15420: Add task scheduling. #41

wants to merge 7 commits into from

Conversation

awg-github
Copy link

@awg-github awg-github commented Mar 11, 2021

General

  1. Added new schedule_start_date column to the civicrm_sqltasks table. It adds in upgrade_0160.
  2. Canged retrieving tasks to the dispatcher(triggered by a scheduled Job).
    Before in WHERE statment:
    enabled = 1
    Now:
    enabled = 1 AND (schedule_start_date < NOW() OR schedule_start_date IS NULL)

'Configure task' page

  1. Added 'task execution schedule' to the execution block.
  2. When user change any option it updates schedule.
  3. Removed 'day' dropdown when is checked "weekly" on "Execution frequency" dropdown.
    configure_task_schedule_block

'Manage tasks' page

1.When user click on 'enable task' button it show dialog where user can set 'next execution schedule date' and can see the schedule.
2. When user click on 'confirm' button it will save 'execution schedule date' to task and will anabe task.
manage_tasks_schedule_block

@awg-github awg-github requested a review from pfigel March 11, 2021 13:33
@awg-github awg-github self-assigned this Mar 11, 2021
@pfigel
Copy link
Member

pfigel commented Jun 22, 2021

@awg-github string for next cron: "Next cron task execution"

…t_execution_formatted' and 'last_execution' in 'getPreparedTask' method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants