def parse_job_line(line):
    """
    >>> parse_job_line("* * * *,myquery,mycredentials\\n")
    ('* * * *', 'myquery', 'mycredentials', 'collect.py')
    >>> parse_job_line("* * * *,myquery,mycredentials,scripts/foo.py\\n")
    ('* * * *', 'myquery', 'mycredentials', 'scripts/foo.py')
    """
    parts = line.strip().split(',')

    if len(parts) == 3:
        parts.append('collect.py')

    return tuple(parts)