Changeset 151f92c in rattail


Ignore:
Timestamp:
11/27/2022 12:33:44 PM (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
c7e61ec
Parents:
2e4bb53
Message:

Keep current rattail config, when launching overnight task

at least i think this makes the most sense..?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/luigi/handler.py

    r2e4bb53 r151f92c  
    185185        env = {
    186186            'PYTHONPATH': appdir,
    187             'RATTAIL_CONFIG_FILES': os.path.join(appdir, 'silent.conf'),
     187            'RATTAIL_CONFIG_FILES': os.pathsep.join(self.config.files_read),
    188188        }
    189189
     
    199199            cmd = [
    200200                '{}/bin/rattail'.format(sys.prefix),
    201                 '--config', '{}/silent.conf'.format(appdir),
    202201                '--no-versioning',
    203202                'overnight', '-k', task['key'],
     
    235234            cmd = [
    236235                os.path.join(sys.prefix, 'bin', 'rattail'),
    237                 '--config', os.path.join(appdir, 'silent.conf'),
    238236                '--no-versioning',
    239237                'run-n-mail',
     
    248246
    249247        # log final command
     248        log.debug("env is: %s", env)
    250249        log.debug("launching command in subprocess: %s", cmd)
    251250        if dry_run:
Note: See TracChangeset for help on using the changeset viewer.