How to use name of job in another parent job?

Hi, I have CircleCI configured in my project. I have an e2e job that has certain steps and commands and another job e2e-scheduled which is a cron job that calls the e2e job at a specific time. The issue is that I want to to check which job has triggered the e2e job and based on that perform a particular command

For instance my config.yml file in circleCI consists the following:

 e2e:
    steps:
         // all previous steps here
         run:
           command: |
               if [[ true ]]; then
                  npx cypress run --headless --browser electron
               else 
                  npx cypress run --headless --browser electron --record --key=<key> --parallel
               fi

 e2e-scheduled: 
      triggers:
           // tell when to trigger e2e etc
      jobs:
          e2e

Can I check if e2e-scheduled has triggered the e2e job or not? How to write this in the if statement. Any help would be appreciated.