SHAKA PAKA
SHAKA PAKA
Explore posts from servers
TTCTheo's Typesafe Cult
Created by SHAKA PAKA on 7/24/2023 in #questions
Sorting imports
What cons and pros, maybe in your experience you rated them and can say what is better in terms of ease of use or configurations.
4 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
CLI logs
24 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
CLI logs
24 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
CLI logs
N/A
24 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
Procfile over Dockerfile
I guess creating railway.json in repo root and setting up buildpack to nixpacks may also work?
10 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
Procfile over Dockerfile
thanks
10 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
Procfile over Dockerfile
b02e81da-b468-49d0-8ac2-3adb2060c0fc
10 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
thanks
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
is it valid syntax? looks strange
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
In terms of code I use poetry, and I have main.py in the project root that run something like this:
import schedule
import time

def job():
print("I'm working...")

schedule.every(10).seconds.do(job)
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
schedule.every(5).to(10).minutes.do(job)
schedule.every().monday.do(job)
schedule.every().wednesday.at("13:15").do(job)
schedule.every().day.at("12:42", "Europe/Amsterdam").do(job)
schedule.every().minute.at(":17").do(job)

def job_with_argument(name):
print(f"I am {name}")

schedule.every(10).seconds.do(job_with_argument, name="Peter")

while True:
schedule.run_pending()
time.sleep(1)
import schedule
import time

def job():
print("I'm working...")

schedule.every(10).seconds.do(job)
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
schedule.every(5).to(10).minutes.do(job)
schedule.every().monday.do(job)
schedule.every().wednesday.at("13:15").do(job)
schedule.every().day.at("12:42", "Europe/Amsterdam").do(job)
schedule.every().minute.at(":17").do(job)

def job_with_argument(name):
print(f"I am {name}")

schedule.every(10).seconds.do(job_with_argument, name="Peter")

while True:
schedule.run_pending()
time.sleep(1)
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
clock: python main.py
clock: python main.py
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
But what to specify in Procfile then?
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
Yep I did it using schedule module
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
.
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
So what would be correct to specify in my case?
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
Here: https://docs.railway.app/deploy/builds#procfiles I found info about "web:", but it's not web in my case and I can't find info about other options
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
Okay, but I deployed with this Procfile and everything work. I guess "clock:" just does nothing in my case? Will be the same if you write web: python main.py And how actually "python main.py" works if it's Poetry project or does it run it in the poetry shell? And what does it mean in Procfile web:, clock:, etc., I just can see that my app is called "clock" in railway. And in general, does it make sense to write something in the Procfile if I have a poetry application that is using "schedule" module in main.py in root? I'm new to deployments so sorry if these will seem like odd questions.
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
N/A
20 replies
TTCTheo's Typesafe Cult
Created by Mendy on 2/19/2023 in #questions
PostgreSQL: Best pgAdmin4 Alternative?
and TablePlus
13 replies
TTCTheo's Typesafe Cult
Created by Mendy on 2/19/2023 in #questions
PostgreSQL: Best pgAdmin4 Alternative?
I use docker compose for that running postgres image
13 replies