𓆩♡𓆪
𓆩♡𓆪
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
I think the docs need to be improved or the UI.
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
as I understood it has built-in cron jobs so I don't have to install a gem for it
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
I have defined the cron job up. How do I run it natively on railway?
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
do I need to define it for railway somewhere?
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
this is really strange, I understand cron jobs but I don't understand how railway uses it
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
I need to run this this task every day
# lib/tasks/scheduler.rake
namespace :scheduler do
desc 'Expire old job postings'
task expire_job_postings: :environment do
puts 'Expiring old job postings...'
# logic to expire job postings
JobPosting.where('application_deadline < ?', Time.current)
.where(is_expired: false)
.update_all(is_expired: true)
JobPosting.reindex!
puts 'Done.'
end
end
# lib/tasks/scheduler.rake
namespace :scheduler do
desc 'Expire old job postings'
task expire_job_postings: :environment do
puts 'Expiring old job postings...'
# logic to expire job postings
JobPosting.where('application_deadline < ?', Time.current)
.where(is_expired: false)
.update_all(is_expired: true)
JobPosting.reindex!
puts 'Done.'
end
end
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
I dont understand how it works
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/28/2023 in #✋|help
Where is the crontab expression?
8696ee9c-3668-496c-a647-619282236f46
15 replies
RRailway
Created by 𓆩♡𓆪 on 12/16/2023 in #✋|help
I upgraded to pro. But instead of upgrading my current project, it made a new one.
Oh I see it now.
6 replies
RRailway
Created by 𓆩♡𓆪 on 12/16/2023 in #✋|help
I upgraded to pro. But instead of upgrading my current project, it made a new one.
Are you sure? I don't see it.
6 replies
RRailway
Created by 𓆩♡𓆪 on 11/21/2023 in #✋|help
Why does my code use local variables?
Fixed. Was rails fault.
6 replies
RRailway
Created by 𓆩♡𓆪 on 11/21/2023 in #✋|help
Why does my code use local variables?
No description
6 replies
RRailway
Created by 𓆩♡𓆪 on 11/21/2023 in #✋|help
Why does my code use local variables?
8696ee9c-3668-496c-a647-619282236f46
6 replies