{% extends "hosting/workspace_page.html" %} {% block title %}Scheduled Tasks · Coulobre Panel{% endblock %} {% block page_title %}Scheduled Tasks{% endblock %} {% block page_metadata %} {% if account %}

{{ account.primary_domain }} · {{ rows|length }} saved · {% if limit is None %}Unlimited{% else %}{{ limit }} allowed{% endif %}

{% endif %} {% endblock %} {% block page_actions %} {% if account and not creation_blocker %} Add task {% endif %} {% endblock %} {% block workspace_selector %} {% include "hosting/workspace_account_selector.html" with account_workspace='tasks' workspace_selected=account.pk %} {% endblock %} {% block page_context %} {% if account %}← {{ account.name }}{% endif %} {% endblock %} {% block page_content %} {% if creation_blocker %}

{% if creation_blocker == 'service' %} Scheduled tasks are disabled on this server. {% if request.user.is_superuser %}Open Operator Settings{% else %}Ask your hosting provider to enable them.{% endif %} {% elif creation_blocker == 'suspended' %} Hosting services are suspended. Resume them before adding a task. {% elif creation_blocker == 'no-package' %} This account has no hosting package. {% if is_customer %}Ask your hosting provider to assign a package that allows scheduled tasks.{% else %}Assign a package that allows scheduled tasks.{% endif %} {% elif creation_blocker == 'disabled-by-package' %} This hosting package has a scheduled task limit of zero. {% if is_customer %}Ask your hosting provider to increase the limit.{% else %}Increase the limit or assign a package that allows tasks.{% endif %} {% elif creation_blocker == 'no-website' %} An active website is required. Review your websites. {% elif creation_blocker == 'limit' %} This account has reached its scheduled task limit. Remove a saved task or {% if is_customer %}ask your hosting provider to increase the limit{% else %}increase the hosting package limit{% endif %}. {% endif %}

{% endif %}
{% if rows %}
{% for job, available in rows %} {% endfor %}
TaskWebsiteSchedule (UTC)Next runLast result
{% if service_available %}{{ job.name }}{% else %}{{ job.name }}{% endif %} {{ job.domain }} {{ job.expression }} {% if available and job.next_run_at %}{{ job.next_run_at|date:"j M Y, H:i" }} UTC {% elif job.enabled %}Unavailable{% else %}Paused{% endif %} {{ job.get_last_result_display|default:"Never run" }} {% if job.last_exit_code is not None %}(exit {{ job.last_exit_code }}){% endif %} {% if job.last_run_at %}
{{ job.last_run_at|date:"j M Y, H:i" }} UTC{% endif %}
{% elif account %}

No tasks have been scheduled for this account.

{% else %}

No hosting accounts are available. Contact your hosting provider to get started.

{% endif %}
{% endblock %}