Skip to content

Commit

Permalink
Fix a logic error in handling @reboot schedule. Closes #22.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcarneiro committed Oct 15, 2018
1 parent 629c09e commit 0c4814f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yacron/cron.py
Expand Up @@ -102,7 +102,7 @@ async def spawn_jobs(self, startup) -> None:
logger.debug("Job %s (%s) is scheduled for startup (@reboot)",
job.name, job.schedule_unparsed)
await self.launch_scheduled_job(job)
else:
elif isinstance(job.schedule, CronTab):
crontab = job.schedule # type: CronTab
if crontab.test(get_now(job.utc)):
logger.debug("Job %s (%s) is scheduled for now",
Expand Down

0 comments on commit 0c4814f

Please sign in to comment.