workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
makes sense. what I do is each django app’s celery tasks are integrated with the exposed api for that app
2017-12-11T11:02:06.000950
Meg
pythondev_help_Meg_2017-12-11T11:02:06.000950
1,512,990,126.00095
103,103
pythondev
help
where some POST requests explicitly trigger one or many tasks
2017-12-11T11:02:23.000357
Meg
pythondev_help_Meg_2017-12-11T11:02:23.000357
1,512,990,143.000357
103,104
pythondev
help
ok, but what if I do not have django but just a stand alone backend application
2017-12-11T11:02:52.000633
Jacki
pythondev_help_Jacki_2017-12-11T11:02:52.000633
1,512,990,172.000633
103,105
pythondev
help
that just does one job
2017-12-11T11:03:01.000574
Jacki
pythondev_help_Jacki_2017-12-11T11:03:01.000574
1,512,990,181.000574
103,106
pythondev
help
just follow the regular celery documentation
2017-12-11T11:03:06.000632
Meg
pythondev_help_Meg_2017-12-11T11:03:06.000632
1,512,990,186.000632
103,107
pythondev
help
should be the same
2017-12-11T11:03:09.000189
Meg
pythondev_help_Meg_2017-12-11T11:03:09.000189
1,512,990,189.000189
103,108
pythondev
help
that would handle executing tasks
2017-12-11T11:03:30.000098
Meg
pythondev_help_Meg_2017-12-11T11:03:30.000098
1,512,990,210.000098
103,109
pythondev
help
oh well, is what I am doing, but still something it’s not that clear
2017-12-11T11:03:38.000047
Jacki
pythondev_help_Jacki_2017-12-11T11:03:38.000047
1,512,990,218.000047
103,110
pythondev
help
what do you mean?
2017-12-11T11:03:46.000196
Meg
pythondev_help_Meg_2017-12-11T11:03:46.000196
1,512,990,226.000196
103,111
pythondev
help
moreover, I have to put that application into a docker container, so
2017-12-11T11:03:55.000399
Jacki
pythondev_help_Jacki_2017-12-11T11:03:55.000399
1,512,990,235.000399
103,112
pythondev
help
I need to communicate with that service
2017-12-11T11:04:07.000622
Jacki
pythondev_help_Jacki_2017-12-11T11:04:07.000622
1,512,990,247.000622
103,113
pythondev
help
uhm, I think you’re not entirely understanding of what celery is
2017-12-11T11:04:59.000400
Meg
pythondev_help_Meg_2017-12-11T11:04:59.000400
1,512,990,299.0004
103,114
pythondev
help
i am pretty new to Celery, but this is my structure
2017-12-11T11:05:23.000806
Jacki
pythondev_help_Jacki_2017-12-11T11:05:23.000806
1,512,990,323.000806
103,115
pythondev
help
‘’’json
2017-12-11T11:05:27.000328
Jacki
pythondev_help_Jacki_2017-12-11T11:05:27.000328
1,512,990,327.000328
103,116
pythondev
help
docker-cluster-with-celery-and-rabbitmq -- test_celery -- __init__.py -- celery.py -- tasks.py -- run_tasks.py -- docker-compose.yml -- dockerfile -- requirements.txt
2017-12-11T11:05:29.000720
Jacki
pythondev_help_Jacki_2017-12-11T11:05:29.000720
1,512,990,329.00072
103,117
pythondev
help
so, I am able to run tasks, such as sending emails
2017-12-11T11:05:57.000258
Jacki
pythondev_help_Jacki_2017-12-11T11:05:57.000258
1,512,990,357.000258
103,118
pythondev
help
but, my question is, do I need to integrate Celery with django or I can use it
2017-12-11T11:06:23.000271
Jacki
pythondev_help_Jacki_2017-12-11T11:06:23.000271
1,512,990,383.000271
103,119
pythondev
help
in a stand alone application adding a layer of communication
2017-12-11T11:06:35.000122
Jacki
pythondev_help_Jacki_2017-12-11T11:06:35.000122
1,512,990,395.000122
103,120
pythondev
help
like, RPC or REST or whatever
2017-12-11T11:06:46.000467
Jacki
pythondev_help_Jacki_2017-12-11T11:06:46.000467
1,512,990,406.000467
103,121
pythondev
help
and use it just as a distributed task Q
2017-12-11T11:07:45.000108
Jacki
pythondev_help_Jacki_2017-12-11T11:07:45.000108
1,512,990,465.000108
103,122
pythondev
help
hmm, ok. So to be clear, celery consists of three parts: worker, broker and task
2017-12-11T11:07:52.000136
Meg
pythondev_help_Meg_2017-12-11T11:07:52.000136
1,512,990,472.000136
103,123
pythondev
help
you’ve already written up the tasks
2017-12-11T11:08:01.000356
Meg
pythondev_help_Meg_2017-12-11T11:08:01.000356
1,512,990,481.000356
103,124
pythondev
help
and you apparently already use rabbit to handle the task queueing
2017-12-11T11:08:22.000051
Meg
pythondev_help_Meg_2017-12-11T11:08:22.000051
1,512,990,502.000051
103,125
pythondev
help
Can anyone recommend a library for grabbing an address from coordinates?
2017-12-11T11:08:41.000192
Myong
pythondev_help_Myong_2017-12-11T11:08:41.000192
1,512,990,521.000192
103,126
pythondev
help
the worer is completely de-coupled from everything, and just listens to messages from the broker
2017-12-11T11:08:45.000562
Meg
pythondev_help_Meg_2017-12-11T11:08:45.000562
1,512,990,525.000562
103,127
pythondev
help
geocoding?
2017-12-11T11:08:53.000664
Meg
pythondev_help_Meg_2017-12-11T11:08:53.000664
1,512,990,533.000664
103,128
pythondev
help
so you have that cluster and communication, <@Jacki>
2017-12-11T11:09:19.000548
Meg
pythondev_help_Meg_2017-12-11T11:09:19.000548
1,512,990,559.000548
103,129
pythondev
help
thing is, tasks are highly specific, are they not?
2017-12-11T11:09:33.000548
Meg
pythondev_help_Meg_2017-12-11T11:09:33.000548
1,512,990,573.000548
103,130
pythondev
help
you can use OOP and task classes to create levels of inheritance, but in the end, a task is highly specific to the thing it is supposed to do
2017-12-11T11:10:20.000373
Meg
pythondev_help_Meg_2017-12-11T11:10:20.000373
1,512,990,620.000373
103,131
pythondev
help
<@Myong> <http://geocoder.readthedocs.io/api.html#reverse-geocoding>
2017-12-11T11:10:30.000494
Patty
pythondev_help_Patty_2017-12-11T11:10:30.000494
1,512,990,630.000494
103,132
pythondev
help
True
2017-12-11T11:10:34.000436
Jacki
pythondev_help_Jacki_2017-12-11T11:10:34.000436
1,512,990,634.000436
103,133
pythondev
help
but still, if i have to send 100 email to 100 users
2017-12-11T11:10:51.000120
Jacki
pythondev_help_Jacki_2017-12-11T11:10:51.000120
1,512,990,651.00012
103,134
pythondev
help
I have to communicate the array of those 100 email addresses
2017-12-11T11:11:05.000266
Jacki
pythondev_help_Jacki_2017-12-11T11:11:05.000266
1,512,990,665.000266
103,135
pythondev
help
no
2017-12-11T11:11:09.000298
Meg
pythondev_help_Meg_2017-12-11T11:11:09.000298
1,512,990,669.000298
103,136
pythondev
help
oh,
2017-12-11T11:11:17.000385
Jacki
pythondev_help_Jacki_2017-12-11T11:11:17.000385
1,512,990,677.000385
103,137
pythondev
help
well, yeah. but not exactly
2017-12-11T11:11:22.000090
Meg
pythondev_help_Meg_2017-12-11T11:11:22.000090
1,512,990,682.00009
103,138
pythondev
help
you have the data from your backend service
2017-12-11T11:11:36.000663
Meg
pythondev_help_Meg_2017-12-11T11:11:36.000663
1,512,990,696.000663
103,139
pythondev
help
you post it to your rabbit broker
2017-12-11T11:11:43.000354
Meg
pythondev_help_Meg_2017-12-11T11:11:43.000354
1,512,990,703.000354
103,140
pythondev
help
and the workers pick it up
2017-12-11T11:11:48.000165
Meg
pythondev_help_Meg_2017-12-11T11:11:48.000165
1,512,990,708.000165
103,141
pythondev
help
<@Jacki> do you _want_ to handle sending emails to users? that can be a mess and end up with your email server running into all kinds of problems when it starts getting blacklisted. if youre looking to move this up to production-level i’d integrate with an external mailing service
2017-12-11T11:12:29.000556
Patty
pythondev_help_Patty_2017-12-11T11:12:29.000556
1,512,990,749.000556
103,142
pythondev
help
and I suppose it’s the same with Redis
2017-12-11T11:12:42.000043
Jacki
pythondev_help_Jacki_2017-12-11T11:12:42.000043
1,512,990,762.000043
103,143
pythondev
help
<@Patty>, yes I already have an external mailing service where all the stuff
2017-12-11T11:13:28.000321
Jacki
pythondev_help_Jacki_2017-12-11T11:13:28.000321
1,512,990,808.000321
103,144
pythondev
help
and basically yes I have to send email mgs as result of some actions
2017-12-11T11:13:50.000006
Jacki
pythondev_help_Jacki_2017-12-11T11:13:50.000006
1,512,990,830.000006
103,145
pythondev
help
so, long story short, you can indeed make a service layer of sorts to handle the task calling and execution
2017-12-11T11:14:08.000395
Meg
pythondev_help_Meg_2017-12-11T11:14:08.000395
1,512,990,848.000395
103,146
pythondev
help
question is, does having this explicit layer make sense in your overall application and project structure?
2017-12-11T11:14:27.000539
Meg
pythondev_help_Meg_2017-12-11T11:14:27.000539
1,512,990,867.000539
103,147
pythondev
help
well, yes because I can only send a payload to a serviceA
2017-12-11T11:14:52.000810
Jacki
pythondev_help_Jacki_2017-12-11T11:14:52.000810
1,512,990,892.00081
103,148
pythondev
help
and I don’t have to take care of broker
2017-12-11T11:15:08.000538
Jacki
pythondev_help_Jacki_2017-12-11T11:15:08.000538
1,512,990,908.000538
103,149
pythondev
help
or other technology stack
2017-12-11T11:15:13.000714
Jacki
pythondev_help_Jacki_2017-12-11T11:15:13.000714
1,512,990,913.000714
103,150
pythondev
help
uhm you _do_
2017-12-11T11:15:18.000763
Meg
pythondev_help_Meg_2017-12-11T11:15:18.000763
1,512,990,918.000763
103,151
pythondev
help
serviceA will be in charge of
2017-12-11T11:15:22.000829
Jacki
pythondev_help_Jacki_2017-12-11T11:15:22.000829
1,512,990,922.000829
103,152
pythondev
help
because you need that for celery
2017-12-11T11:15:29.000176
Meg
pythondev_help_Meg_2017-12-11T11:15:29.000176
1,512,990,929.000176
103,153
pythondev
help
do whatever he wants to do
2017-12-11T11:15:32.000306
Jacki
pythondev_help_Jacki_2017-12-11T11:15:32.000306
1,512,990,932.000306
103,154
pythondev
help
or for any kind of asynchronous task queue
2017-12-11T11:15:39.000259
Meg
pythondev_help_Meg_2017-12-11T11:15:39.000259
1,512,990,939.000259
103,155
pythondev
help
oh yes, serviceA has celery and use Redis in my example
2017-12-11T11:15:47.000575
Jacki
pythondev_help_Jacki_2017-12-11T11:15:47.000575
1,512,990,947.000575
103,156
pythondev
help
and he has a public endpoint
2017-12-11T11:16:02.000614
Jacki
pythondev_help_Jacki_2017-12-11T11:16:02.000614
1,512,990,962.000614
103,157
pythondev
help
just to receive the work to perform
2017-12-11T11:16:16.000066
Jacki
pythondev_help_Jacki_2017-12-11T11:16:16.000066
1,512,990,976.000066
103,158
pythondev
help
is that make sense?
2017-12-11T11:16:43.000070
Jacki
pythondev_help_Jacki_2017-12-11T11:16:43.000070
1,512,991,003.00007
103,159
pythondev
help
What I get from you is Service A is a backend service, and you need it to pass off async tasks to celery workers.
2017-12-11T11:17:46.000042
Meg
pythondev_help_Meg_2017-12-11T11:17:46.000042
1,512,991,066.000042
103,160
pythondev
help
@http(‘POST’, ‘/api/email_dispatcher’) task = tasks.send_email.delay(payload_to_send,url_to_call)
2017-12-11T11:18:40.000078
Jacki
pythondev_help_Jacki_2017-12-11T11:18:40.000078
1,512,991,120.000078
103,161
pythondev
help
<@Ciera> question about slack api. I have two application credentials 1. real slack 2. test slack. I got my application to work using the test slack and now i want to go back and get the `xoxb-` token for real slack. Problem is when I try and use the real slack token it's apparently connected only to the test slack.
2017-12-11T11:18:41.000819
Glinda
pythondev_help_Glinda_2017-12-11T11:18:41.000819
1,512,991,121.000819
103,162
pythondev
help
something like that
2017-12-11T11:18:45.000068
Jacki
pythondev_help_Jacki_2017-12-11T11:18:45.000068
1,512,991,125.000068
103,163
pythondev
help
why not import the task module in Service A and execute it there via ```task = SomeTask() task.apply_async(args = [arg1, arg2], queue = 'specific_queue') ```
2017-12-11T11:18:49.000470
Meg
pythondev_help_Meg_2017-12-11T11:18:49.000470
1,512,991,129.00047
103,164
pythondev
help
Is there a universal way to query an API to ask for entries where keys dont exist?
2017-12-11T11:19:39.000456
Myong
pythondev_help_Myong_2017-12-11T11:19:39.000456
1,512,991,179.000456
103,165
pythondev
help
yes is what I did
2017-12-11T11:19:44.000436
Jacki
pythondev_help_Jacki_2017-12-11T11:19:44.000436
1,512,991,184.000436
103,166
pythondev
help
but,
2017-12-11T11:20:03.000354
Jacki
pythondev_help_Jacki_2017-12-11T11:20:03.000354
1,512,991,203.000354
103,167
pythondev
help
in my local env
2017-12-11T11:20:08.000279
Jacki
pythondev_help_Jacki_2017-12-11T11:20:08.000279
1,512,991,208.000279
103,168
pythondev
help
I have one console with the celery worker runs
2017-12-11T11:20:19.000293
Jacki
pythondev_help_Jacki_2017-12-11T11:20:19.000293
1,512,991,219.000293
103,169
pythondev
help
and another one where I run the serviceA
2017-12-11T11:20:38.000123
Jacki
pythondev_help_Jacki_2017-12-11T11:20:38.000123
1,512,991,238.000123
103,170
pythondev
help
in order to expose the APIs
2017-12-11T11:20:46.000308
Jacki
pythondev_help_Jacki_2017-12-11T11:20:46.000308
1,512,991,246.000308
103,171
pythondev
help
<@Myong> no, this is something that would only be available if the API implemented it
2017-12-11T11:20:54.000069
Patty
pythondev_help_Patty_2017-12-11T11:20:54.000069
1,512,991,254.000069
103,172
pythondev
help
figured as much
2017-12-11T11:21:04.000140
Myong
pythondev_help_Myong_2017-12-11T11:21:04.000140
1,512,991,264.00014
103,173
pythondev
help
but I don’t know how to put those guys into docker containers and then into production
2017-12-11T11:21:15.000167
Jacki
pythondev_help_Jacki_2017-12-11T11:21:15.000167
1,512,991,275.000167
103,174
pythondev
help
I don’t think you should dockerize celery in prod
2017-12-11T11:21:33.000015
Meg
pythondev_help_Meg_2017-12-11T11:21:33.000015
1,512,991,293.000015
103,175
pythondev
help
since the workers are running as daemons, anway
2017-12-11T11:21:40.000226
Meg
pythondev_help_Meg_2017-12-11T11:21:40.000226
1,512,991,300.000226
103,176
pythondev
help
at least, they should
2017-12-11T11:21:44.000095
Meg
pythondev_help_Meg_2017-12-11T11:21:44.000095
1,512,991,304.000095
103,177
pythondev
help
so, docker really doesn’t apply here, IMO
2017-12-11T11:21:52.000112
Meg
pythondev_help_Meg_2017-12-11T11:21:52.000112
1,512,991,312.000112
103,178
pythondev
help
<@Glinda> are you sure you haven't mixed up your tokens ? :smile: A token is link to a slack team
2017-12-11T11:21:57.000593
Ciera
pythondev_help_Ciera_2017-12-11T11:21:57.000593
1,512,991,317.000593
103,179
pythondev
help
Pretty certain
2017-12-11T11:22:22.000770
Glinda
pythondev_help_Glinda_2017-12-11T11:22:22.000770
1,512,991,342.00077
103,180
pythondev
help
uhmm
2017-12-11T11:22:26.000896
Jacki
pythondev_help_Jacki_2017-12-11T11:22:26.000896
1,512,991,346.000896
103,181
pythondev
help
but from an architectural point of view
2017-12-11T11:22:38.000929
Jacki
pythondev_help_Jacki_2017-12-11T11:22:38.000929
1,512,991,358.000929
103,182
pythondev
help
I tried it a few times last night, and even reinstalled application
2017-12-11T11:22:42.000966
Glinda
pythondev_help_Glinda_2017-12-11T11:22:42.000966
1,512,991,362.000966
103,183
pythondev
help
<@Jacki> <http://docs.celeryproject.org/en/latest/userguide/daemonizing.html>
2017-12-11T11:22:55.000548
Meg
pythondev_help_Meg_2017-12-11T11:22:55.000548
1,512,991,375.000548
103,184
pythondev
help
I'm trying to use the RTM api and I'm wondering if it's a cache issue.
2017-12-11T11:23:02.000049
Glinda
pythondev_help_Glinda_2017-12-11T11:23:02.000049
1,512,991,382.000049
103,185
pythondev
help
does it make sense to have a serviceA with a public APIs and Celery?
2017-12-11T11:23:07.000259
Jacki
pythondev_help_Jacki_2017-12-11T11:23:07.000259
1,512,991,387.000259
103,186
pythondev
help
uhm, yes
2017-12-11T11:23:24.000272
Meg
pythondev_help_Meg_2017-12-11T11:23:24.000272
1,512,991,404.000272
103,187
pythondev
help
oh ok, but I think you can put it into a container
2017-12-11T11:23:49.000134
Jacki
pythondev_help_Jacki_2017-12-11T11:23:49.000134
1,512,991,429.000134
103,188
pythondev
help
but
2017-12-11T11:25:04.000420
Jacki
pythondev_help_Jacki_2017-12-11T11:25:04.000420
1,512,991,504.00042
103,189
pythondev
help
oh, for development certainly
2017-12-11T11:25:11.000471
Meg
pythondev_help_Meg_2017-12-11T11:25:11.000471
1,512,991,511.000471
103,190
pythondev
help
if I can have a serviceA with public API and Celery inside
2017-12-11T11:25:22.000244
Jacki
pythondev_help_Jacki_2017-12-11T11:25:22.000244
1,512,991,522.000244
103,191
pythondev
help
but production?
2017-12-11T11:25:23.000974
Meg
pythondev_help_Meg_2017-12-11T11:25:23.000974
1,512,991,523.000974
103,192
pythondev
help
I should have to run the serviceA with python service.py and at the same time
2017-12-11T11:26:23.000876
Jacki
pythondev_help_Jacki_2017-12-11T11:26:23.000876
1,512,991,583.000876
103,193
pythondev
help
the celery worker
2017-12-11T11:26:27.000409
Jacki
pythondev_help_Jacki_2017-12-11T11:26:27.000409
1,512,991,587.000409
103,194
pythondev
help
am I right?
2017-12-11T11:26:31.000629
Jacki
pythondev_help_Jacki_2017-12-11T11:26:31.000629
1,512,991,591.000629
103,195
pythondev
help
correct
2017-12-11T11:26:38.000338
Meg
pythondev_help_Meg_2017-12-11T11:26:38.000338
1,512,991,598.000338
103,196
pythondev
help
so, in the end, Can Celery be used as a standalone distributed task management?
2017-12-11T11:27:10.000968
Jacki
pythondev_help_Jacki_2017-12-11T11:27:10.000968
1,512,991,630.000968
103,197
pythondev
help
@dd2 thanks a lot for helping me.
2017-12-11T11:27:44.000522
Jacki
pythondev_help_Jacki_2017-12-11T11:27:44.000522
1,512,991,664.000522
103,198
pythondev
help
@dd2 <https://nickjanetakis.com/blog/dockerize-a-flask-celery-and-redis-application-with-docker-compose>
2017-12-11T11:28:20.000679
Jacki
pythondev_help_Jacki_2017-12-11T11:28:20.000679
1,512,991,700.000679
103,199
pythondev
help
yeah, I’ve seen that before, and have talked with Ken Cochrane at Docker about this very thing
2017-12-11T11:28:50.000835
Meg
pythondev_help_Meg_2017-12-11T11:28:50.000835
1,512,991,730.000835
103,200
pythondev
help
FWIW, I like that setup for development
2017-12-11T11:29:09.000005
Meg
pythondev_help_Meg_2017-12-11T11:29:09.000005
1,512,991,749.000005
103,201
pythondev
help
production, no
2017-12-11T11:29:12.000110
Meg
pythondev_help_Meg_2017-12-11T11:29:12.000110
1,512,991,752.00011
103,202