Skip to content
Snippets Groups Projects
Verified Commit 9bbdc5eb authored by Felix Eckhofer's avatar Felix Eckhofer :man_dancing:
Browse files

Add heartbeat after every sync

parent 0a8b61cd
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,9 @@ module Pretalx ...@@ -79,6 +79,9 @@ module Pretalx
conference = Conference.find_by(slug: conference_slug) conference = Conference.find_by(slug: conference_slug)
import_schedule(conference, conference.data['schedule_url'], conference.data['filedrop_url']) import_schedule(conference, conference.data['schedule_url'], conference.data['filedrop_url'])
RevisionSet.create!(conference:) RevisionSet.create!(conference:)
heartbeat = conference.data['heartbeat_url']
HTTParty.get(heartbeat) unless heartbeat.blank?
end end
private private
......
yyticap6zoGwsCHAopvKcSo3S00K8NrYsUdsKi4DT70yAL0/4AfxxhgTGX1y6sxKryjo93305AXDPr0r5SaSgaAIPMhLblHLamiYlVVhvLB7r+LrGm3gkSDRKeJd6xKXMC9FxjzrodSxxAmG1yz+c3geOpCfSTRH1znkb75Dc11NRJ7w48wNRjBbYKmvmwnaWsyW5QJFcKiGU7QzFHiyyenGujRTO/gc3nm/NQShd1dY9Y3idpg1PA68iaaVQrx5RrNq+KYtrEBYTMscJBEGxs8mJDMRYi6TsCuodl+m5agg0vAJiUsc/jPHS4Y5DiaaJKLF9J6DxZIZR+DobBybDvALNnYHUFWH1QcuyqfK8rdVqbtS40QbmVXwKBqMOEGs6mAdoAIRp1C2T1ZkcHPL2oHwUFuxKWI7gDeQ0lF+18Aixa+v4BB/uKfCKtPjyzREA4LqUWlNstlOfuRP9+AzVdHKWfDeotFaU8aEb/It0ktKcrEuDGcVAtpO9eWtvcoEZ8BlWaPGbVoTaxCJWDRbKe0JPz9JFPs0YEaT6nt5LaqWYI8yByK7M2thoK7DIoZ93zvqyTHM2IJjeUDWE6f+G0/aib48K0myT3g3NPvHhCXi3b879Q231oDQVDlbnX8piSoKBu/mIQ==--fOeHlW2YD8T8xWB0--pbQRclG873vKQ79QBDa07g== cedAIG6rZwVaMfjDf/fzqjqjJLtPKR4RnfixBSIi1PLaEBAg8bvSfJPUVq7BFQbTanlz4rrOQ9nXQWljcpjmTY8DxXqYVd0G7Ifqp0z3lyjnxuI7xTFPOlLOQHpJ+DiQuX4S9Ldczg7InxWTkJK+JNqRO5aMA/usMR/hiWeLNBFYVHyjNm7JGQ9GuV3qhUJAT/7beb6cT4fcyzw+bcvBMsXvmQyqCUGHjrq+8pXdJp2a4WNsQNoUIwpVpcUnO7c6Ia2zU4DieJtbgK3uyO//yQU2WaQrilrglll8BnxkPoXuAtnTaJ4sxeJvNri4CNrcH7xDac907JYXSG/fItC1AuseMeZIlPFZTf8XXHHprlURabqkhRjhH3WuloHBXxXzsK8SGGn4neCuxodPaztIEOnd+FJ48aqTly67g5HbLhZt1eNWcJzsaXrbxAk2kyy4tqtJL7h8A8QehR1SZOFZoRQtSiSMDJ8nIgHIwZ1fd3ONUaKqePkXMNAp2XQctOQWk9NNWFNqL82wlEh08DuxQTvqdL007HZmH6kO3llOfLHJ44WmXHpUzoQbFR27sd7irVKpm5TfgnB1UHzLTGcJDA4GJv29FkUQkiHxG//wm5NRDllE3hRsaM2B3P+dZRu4xcSsZ1sYYfHmdCdXmmIRUIx1vv+YyUFSSYDP6fqZostRFNtYF7KxUxZBW2SZyz453U2FETKkmVBIGAfd7K1qGrLPpz2EVPzZU1nwIM/1Qy1FHiA9uHQEm/ufxGV90FQXL9N5r76C3pE5A5t7BhPp3+i0Je++dMAH/c388dKZYle9xlPWjMWeH93T4xarVGKefYA8pia9BoM+8DA7yh3DDRE8WCZCfA86IraxKlw/TsQQtqy2RjmTK7wMIDEBCYIS7zlS7yPdG6slx2mtoI0lenVEaAPCNzEPREyGUSMeq/v8EW9QSrmnTQixViLD9KJVyXDlUN+2syR94MfiV4/ocAWFuQ==--i2jfYUHs7mOaeKp5--LwBBPAnWTJGcZg7BMU+aXg==
\ No newline at end of file \ No newline at end of file
...@@ -55,6 +55,7 @@ Conference.find_or_create_by(slug: "38c3").tap do |c| ...@@ -55,6 +55,7 @@ Conference.find_or_create_by(slug: "38c3").tap do |c|
c.starts_at = DateTime.parse("27 December 2024 10:30 CET") c.starts_at = DateTime.parse("27 December 2024 10:30 CET")
c.ends_at = DateTime.parse("30 December 2024 19:00 CET") c.ends_at = DateTime.parse("30 December 2024 19:00 CET")
c.data = { c.data = {
"heartbeat_url" => fetch_credential("heartbeat_deen"),
"schedule_url" => "https://api.events.ccc.de/congress/2024/assembly/6840c453-af5c-413c-8127-adcbdcd98e9e/schedule.json", "schedule_url" => "https://api.events.ccc.de/congress/2024/assembly/6840c453-af5c-413c-8127-adcbdcd98e9e/schedule.json",
"filedrop_url" => "https://speakers.c3lingo.org/" "filedrop_url" => "https://speakers.c3lingo.org/"
} }
...@@ -70,6 +71,7 @@ Conference.find_or_create_by(slug: "38c3-more").tap do |c| ...@@ -70,6 +71,7 @@ Conference.find_or_create_by(slug: "38c3-more").tap do |c|
c.starts_at = DateTime.parse("27 December 2024 10:30 CET") c.starts_at = DateTime.parse("27 December 2024 10:30 CET")
c.ends_at = DateTime.parse("30 December 2024 19:00 CET") c.ends_at = DateTime.parse("30 December 2024 19:00 CET")
c.data = { c.data = {
"heartbeat_url" => fetch_credential("heartbeat_more"),
"schedule_url" => "https://api.events.ccc.de/congress/2024/assembly/6840c453-af5c-413c-8127-adcbdcd98e9e/schedule.json", "schedule_url" => "https://api.events.ccc.de/congress/2024/assembly/6840c453-af5c-413c-8127-adcbdcd98e9e/schedule.json",
"filedrop_url" => "https://speakers.c3lingo.org/" "filedrop_url" => "https://speakers.c3lingo.org/"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment