Skip to content

manual plugin setting not respected #1291

@OmgOhnoes

Description

@OmgOhnoes

Expected behaviour:

When set manual: yes any scheduled tasks containing it should be skipped.

Note: this use to work fine, it seems to have stopped when i upgraded to take advantage of the IRC daemon. This happens regardless of how many other tasks are scheduled.

Actual behaviour:

Tasks are run by the daemon regardless of manual setting.

Steps to reproduce:

Set scheduler to execute a task with manual: yes configured -> Task is processed.

Config:

tasks:      
  blk_gtv: &reuse_gtv
    template:
      - tvshows
      - transm_seedbox
      - tvdir
      - ratios
    set:
      addpaused: no
    disable: [ torrent_alive ]
    verify_ssl_certificates: no

  gettv_freshon:
    manual: yes
    <<: *reuse_gtv
    rss:
      url: "{{ secrets.rsss.freshon }}"
      group_links: yes
    headers:
      cookie: "{{ secrets.cookies.freshon }}"
    priority: 5

schedules:
  - tasks: [gettv_freshon]
    interval:
      minutes: 5

Log:

flexget -L debug daemon start --dump --verbose
2016-07-20 20:37 DEBUG    manager                       Figuring out config load paths
2016-07-20 20:37 DEBUG    manager                       Found config: /.flexget/config.yml
2016-07-20 20:37 DEBUG    manager                       Config file /.flexget/config.yml selected
2016-07-20 20:37 DEBUG    manager                       sys.defaultencoding: ascii
2016-07-20 20:37 DEBUG    manager                       sys.getfilesystemencoding: UTF-8
2016-07-20 20:37 DEBUG    manager                       os.path.supports_unicode_filenames: False
2016-07-20 20:37 DEBUG    plugin                        Trying to load plugins from: [u'/.flexget/plugins', '/usr/local/lib/python2.7/dist-packages/flexget/plugins']
2016-07-20 20:37 DEBUG    safe                          Reading from cache file /tmp/safe-0.4.words.cache
2016-07-20 20:37 DEBUG    plugin                        Plugin `memusage` requires `ext lib `guppy`` to load.
2016-07-20 20:37 DEBUG    deluge                        ConfigManager started..
2016-07-20 20:37 DEBUG    plugin                        Plugins took 4.24 seconds to load
2016-07-20 20:37 DEBUG    manager                       Connecting to: sqlite://///.flexget/db-config.sqlite
2016-07-20 20:37 DEBUG    manager                       config_name: config
2016-07-20 20:37 DEBUG    manager                       config_base: /.flexget
2016-07-20 20:37 DEBUG    secrets                       trying to load secrets from file
2016-07-20 20:37 DEBUG    secrets                       updating DB with secret file contents
2016-07-20 20:37 DEBUG    manager                       New config data loaded.
2016-07-20 20:37 DEBUG    schema                        current flexget version already exist in db 2.1.18
2016-07-20 20:37 DEBUG    parsing                       setting default movie parser to internal. (options: {u'internal': <flexget.plugins.parsers.parser_internal.ParserInternal object at 0xb4bcee0c>, u'guessit': <flexget.plugins.parsers.parser_guessit.ParserGuessit object at 0xb3c61a0c>})
2016-07-20 20:37 DEBUG    parsing                       setting default series parser to internal. (options: {u'internal': <flexget.plugins.parsers.parser_internal.ParserInternal object at 0xb4bcee0c>, u'guessit': <flexget.plugins.parsers.parser_guessit.ParserGuessit object at 0xb3c61a0c>})
2016-07-20 20:37 INFO     webui                         Not starting webui as it's disabled or not set in the config
2016-07-20 20:37 INFO     scheduler                     Starting scheduler
2016-07-20 20:37 INFO     apscheduler.scheduler                 Scheduler started
2016-07-20 20:37 INFO     apscheduler.scheduler                 Added job "gettv_freshon" to job store "default"
2016-07-20 20:37 INFO     apscheduler.scheduler                 Resumed scheduler job processing
2016-07-20 20:37 DEBUG    irc                           No irc connections defined in the config
2016-07-20 20:37 DEBUG    apscheduler.scheduler                 Looking for jobs to run
2016-07-20 20:37 INFO     ipc.rpyc                      server started on [127.0.0.1]:58031
2016-07-20 20:37 DEBUG    apscheduler.scheduler                 Next wakeup is due at 2016-07-20 20:42:08.589323-07:00 (in 299.825416 seconds)
2016-07-20 20:42 DEBUG    apscheduler.scheduler                 Looking for jobs to run
2016-07-20 20:42 INFO     apscheduler.executors.default                 Running job "gettv_freshon (trigger: interval[0:05:00], next run at: 2016-07-20 20:47:08 PDT)" (scheduled at 2016-07-20 20:42:08.589323-07:00)
2016-07-20 20:42 DEBUG    scheduler                     executing tasks: [u'gettv_freshon']
2016-07-20 20:42 DEBUG    scheduler                     task finished executing: gettv_freshon
2016-07-20 20:42 INFO     manager       gettv_freshon   Running database cleanup.
2016-07-20 20:42 DEBUG    apscheduler.scheduler                 Next wakeup is due at 2016-07-20 20:47:08.589323-07:00 (in 299.796039 seconds)
2016-07-20 20:42 DEBUG    seen          gettv_freshon   TODO: Disabled because of ticket #1321
2016-07-20 20:42 INFO     db_vacuum     gettv_freshon   Running VACUUM on database to improve performance and decrease db size.
2016-07-20 20:42 DEBUG    util.simple_persistence gettv_freshon   setting key last_vacuum value datetime.datetime(2016, 7, 20, 20, 42, 9, 615912)
2016-07-20 20:42 INFO     db_analyze    gettv_freshon   Running ANALYZE on database to improve performance.
2016-07-20 20:42 DEBUG    task          gettv_freshon   Marking config for all tasks as changed.
2016-07-20 20:42 DEBUG    irc           gettv_freshon   No irc connections defined in the config
2016-07-20 20:42 DEBUG    util.simple_persistence gettv_freshon   setting key last_cleanup value datetime.datetime(2016, 7, 20, 20, 42, 10, 10805)
2016-07-20 20:42 DEBUG    task          gettv_freshon   executing gettv_freshon
2016-07-20 20:42 DEBUG    template      gettv_freshon   Merging template tvshows into task gettv_freshon
2016-07-20 20:42 DEBUG    template      gettv_freshon   Merging template transm_seedbox into task gettv_freshon
2016-07-20 20:42 DEBUG    template      gettv_freshon   Merging template tvdir into task gettv_freshon
2016-07-20 20:42 DEBUG    template      gettv_freshon   Merging template ratios into task gettv_freshon
2016-07-20 20:42 DEBUG    include       gettv_freshon   Merging /.flexget/tvshows.yml into task gettv_freshon
2016-07-20 20:42 DEBUG    headers       gettv_freshon   headers to add: {....

Additional information:

  • Flexget Version: 2.1.18
  • Python Version: Python 2.7.9
  • Installation method: pip
  • OS and version: Debian 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions