Skip to content

manual task as a from_task input doesn't get run #2700

@delroth

Description

@delroth

Expected behaviour:

A task can be configured as manual and get run by from_task without being manually listed on the CLI.

This is the behavior documented in https://flexget.com/Plugins/from_task

Actual behaviour:

manual tasks get skipped unless listed in --tasks (and then they get run twice -- once at the top-level, once in from_task context).

Config:

# flexget/tests/test_from_task.py with manual: yes added
tasks:
  subtask:
    manual: yes
    mock:
    - title: subtask entry 1
      other_field: 5
    - title: subtask entry 1
    accept_all: yes
  main_task:
    from_task: subtask

Log:

(click to expand)
2020-06-17 19:05:04 DEBUG    task          main_task       executing main_task
2020-06-17 19:05:04 DEBUG    status        main_task       Adding new task main_task
2020-06-17 19:05:04 VERBOSE  from_task     main_task       Running task `subtask` as subtask.
2020-06-17 19:05:04 DEBUG    task          main_task>subtask executing main_task>subtask
2020-06-17 19:05:04 DEBUG    manual        main_task>subtask Disabling task main_task>subtask, task can only run in manual mode (via API/CLI)
2020-06-17 19:05:04 DEBUG    task          main_task>subtask Aborting task (plugin: manual)
2020-06-17 19:05:04 DEBUG    task_queue                    task main_task aborted: TaskAbort(reason=manual task not specified in --tasks, silent=True)

Additional information:

  • FlexGet version: 3.1.64
  • Python version: 3.7
  • Installation method: git
  • Using daemon (yes/no): no
  • OS and version: Linux
  • Link to crash log: n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions