Skip to content

Scheduler wildcard for task name no longer executes scheduled tasks #3369

@pfak

Description

@pfak

Expected behaviour:

'*' (wildcard) to execute all defined tasks.

Actual behaviour:

'*' (wildcard) schedule does not execute any tasks.

Steps to reproduce:

Use '*' (wildcard) for the key name for the scheduled task, instead of an explicit key name of the task.

Config:

schedules:
  - tasks: '*'
    interval:
      minutes: 1

tasks:
  media-site:
    template: media
    discover:
      what:
        - next_series_episodes: yes
      from:
        - site: key

templates:
  media:
    download: /incoming
    transmission:
      host: localhost
      port: 9092
    series:
      1080p+ !dolbyvision:
        - Linux Media
    set:
      proper: 1 day
      label: TV
      path: /media/{{series_name}}/{{series_name}} - Season {{series_season}}
    content_filter:
      require_all:
         - '*.mkv'
    regexp:
      reject:
        - spanish
        - german
web_server: yes

Log:

With the "*" wildcard defined, no tasks are run:

2022-02-21 07:17:24 INFO     scheduler                     Starting scheduler
2022-02-21 07:17:24 INFO     apscheduler.scheduler                 Scheduler started
2022-02-21 07:17:24 INFO     apscheduler.scheduler                 Added job "*" to job store "default"
2022-02-21 07:17:24 INFO     apscheduler.scheduler                 Removed job 75f0548cf663cf388c4135157afb88a363701d17
2022-02-21 07:17:24 INFO     apscheduler.scheduler                 Resumed scheduler job processing
2022-02-21 07:17:24 DEBUG    apscheduler.scheduler                 Looking for jobs to run
2022-02-21 07:17:24 DEBUG    apscheduler.scheduler                 Next wakeup is due at 2022-02-21 07:18:24.723283-08:00 (in 59.921033 seconds)
2022-02-21 07:18:24 DEBUG    apscheduler.scheduler                 Looking for jobs to run
2022-02-21 07:18:24 INFO     apscheduler.executors.default                 Running job "* (trigger: interval[0:01:00], next run at: 2022-02-21 07:18:24 PST)" (scheduled at 2022-02-21 07:18:24.723283-08:00)
2022-02-21 07:18:24 DEBUG    scheduler                     executing tasks: ['*']
2022-02-21 07:18:24 DEBUG    scheduler                     all tasks in schedule finished executing
2022-02-21 07:18:24 INFO     apscheduler.executors.default                 Job "* (trigger: interval[0:01:00], next run at: 2022-02-21 07:19:24 PST)" executed successfully
2022-02-21 07:18:24 DEBUG    apscheduler.scheduler                 Next wakeup is due at 2022-02-21 07:19:24.723283-08:00 (in 59.996177 seconds)

Additional information:

  • FlexGet version: 3.3.0
  • Python version: 3.8.10
  • Installation method: pip
  • Using daemon (yes/no): yes
  • OS and version: Ubuntu 20.04.3 amd64
  • 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