-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scheduler not working when the CSV update #79
Comments
I have tested scheduler job Steps to Reproduce
def listener(event):
if not event.exception:
if scheduler.get_job('check_token'):
job = scheduler.get_job('check_token')
if job.func() == 'VALID_TOKEN':
scheduler.remove_job('check_token')
logger.info('Remove check_token job.')
scheduler.add_job(
create_or_update_exporters,
#trigger = CronTrigger(hour='*/4'),
trigger = CronTrigger(minute='*'),
id = 'create_or_update_exporters',
max_instances = 1,
replace_existing = True,
coalesce = True,
misfire_grace_time = 900,
next_run_time = datetime.now()
)
logger.info("Added job 'create_or_update_exporters'.")
docker-compose logs -f scheduler
# create_or_update_exporters job is running every hour
scheduler_1 | CHECK_EXPORTERS_DONE
scheduler_1 | CHECK_EXPORTERS_START
scheduler_1 | CHECK_EXPORTERS_DONE
scheduler_1 | CHECK_EXPORTERS_START
docker-compose exec scheduler /bin/bash
root@032832075fb2:/data# echo "Traefik Exporter,traefik-exporter,https://github.com/iadvize/traefik-exporter,0,HTTP" >> /data/exporter_list.csv
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scheduler has some problem(not working) after the CSV file has been updated in the exporterhub.io
The text was updated successfully, but these errors were encountered: