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 | Typically you would import any dependencies at the top of the file containing that function, so that anyone using the function would have the import happen at initialization time. | 2019-01-20T23:10:48.937000 | Sasha | pythondev_help_Sasha_2019-01-20T23:10:48.937000 | 1,548,025,848.937 | 3,321 |
pythondev | help | thanks | 2019-01-20T23:15:56.937500 | Stacy | pythondev_help_Stacy_2019-01-20T23:15:56.937500 | 1,548,026,156.9375 | 3,322 |
pythondev | help | I have a list that looks like this.
```('3QExcqUFj2gTksa9r1TXM69nPmnyi1y8MC', '9994.0'),
('1Kd6zLb9iAjcrgq8HzWnoWNVLYYWjp3swA', '9707.0'),
('1K1X6xbFMas6xeeipHZXQMTFHJkyBkvy5q', 'Series([], )'),
('1P9fAFAsSLRmMu2P7wZ5CXDPRfLSWTy9N8', '9425.0'),
('3Pbzyn58xeZk3ctoW2sGRaDPf4Fr2f4wQc', '9337.0'),```
I want to identif... | 2019-01-21T00:57:20.940200 | Conchita | pythondev_help_Conchita_2019-01-21T00:57:20.940200 | 1,548,032,240.9402 | 3,323 |
pythondev | help | a list comprehension would do.
something like
```
new_list = [item for item in current_list if item[1] == 'Series([], )']
``` | 2019-01-21T00:59:05.942500 | Conrad | pythondev_help_Conrad_2019-01-21T00:59:05.942500 | 1,548,032,345.9425 | 3,324 |
pythondev | help | Hmm that only returns empty lists | 2019-01-21T01:03:11.942800 | Conchita | pythondev_help_Conchita_2019-01-21T01:03:11.942800 | 1,548,032,591.9428 | 3,325 |
pythondev | help | `if item[1] != 'Series([], )'` | 2019-01-21T01:03:37.943200 | Chester | pythondev_help_Chester_2019-01-21T01:03:37.943200 | 1,548,032,617.9432 | 3,326 |
pythondev | help | But I'd rather do `if not item[1].startswith('Series')` just in case | 2019-01-21T01:03:53.943700 | Chester | pythondev_help_Chester_2019-01-21T01:03:53.943700 | 1,548,032,633.9437 | 3,327 |
pythondev | help | I'd be a little suspicious that the list contains an actual `Series` object and is just printing out as a string. | 2019-01-21T01:04:50.944300 | Sasha | pythondev_help_Sasha_2019-01-21T01:04:50.944300 | 1,548,032,690.9443 | 3,328 |
pythondev | help | I tried to modify it to `!=` which prints the whole list included rows with `'Series([], ')` | 2019-01-21T01:05:42.945300 | Conchita | pythondev_help_Conchita_2019-01-21T01:05:42.945300 | 1,548,032,742.9453 | 3,329 |
pythondev | help | <@Conchita> what's `type(item[1])`? | 2019-01-21T01:06:09.945700 | Chester | pythondev_help_Chester_2019-01-21T01:06:09.945700 | 1,548,032,769.9457 | 3,330 |
pythondev | help | String <@Chester> | 2019-01-21T01:08:22.946700 | Conchita | pythondev_help_Conchita_2019-01-21T01:08:22.946700 | 1,548,032,902.9467 | 3,331 |
pythondev | help | Show us your code | 2019-01-21T01:08:32.946900 | Chester | pythondev_help_Chester_2019-01-21T01:08:32.946900 | 1,548,032,912.9469 | 3,332 |
pythondev | help | Ok, hold on | 2019-01-21T01:08:59.947400 | Conchita | pythondev_help_Conchita_2019-01-21T01:08:59.947400 | 1,548,032,939.9474 | 3,333 |
pythondev | help | Based on the output, it is a string; so, it should be almost precisely what <@Chester> wrote, just without the `not`: `if item[1].startswith('Series')` | 2019-01-21T01:09:06.947600 | Leonie | pythondev_help_Leonie_2019-01-21T01:09:06.947600 | 1,548,032,946.9476 | 3,334 |
pythondev | help | > I want to identify the rows that contain `'Series([], ')`, and make a new list without those rows | 2019-01-21T01:10:05.947900 | Chester | pythondev_help_Chester_2019-01-21T01:10:05.947900 | 1,548,033,005.9479 | 3,335 |
pythondev | help | > without those rows | 2019-01-21T01:10:09.948200 | Chester | pythondev_help_Chester_2019-01-21T01:10:09.948200 | 1,548,033,009.9482 | 3,336 |
pythondev | help | oh, I misread the "without" | 2019-01-21T01:10:19.948500 | Conrad | pythondev_help_Conrad_2019-01-21T01:10:19.948500 | 1,548,033,019.9485 | 3,337 |
pythondev | help | me too, sorry | 2019-01-21T01:10:36.948700 | Leonie | pythondev_help_Leonie_2019-01-21T01:10:36.948700 | 1,548,033,036.9487 | 3,338 |
pythondev | help | Line 51 is one of the suggestions here | 2019-01-21T01:13:55.948800 | Conchita | pythondev_help_Conchita_2019-01-21T01:13:55.948800 | 1,548,033,235.9488 | 3,339 |
pythondev | help | `result = i, x` this is a two element tuple | 2019-01-21T01:14:52.949400 | Chester | pythondev_help_Chester_2019-01-21T01:14:52.949400 | 1,548,033,292.9494 | 3,340 |
pythondev | help | `for item in result` will just iterate exactly two times | 2019-01-21T01:15:06.950000 | Chester | pythondev_help_Chester_2019-01-21T01:15:06.950000 | 1,548,033,306.95 | 3,341 |
pythondev | help | one for `i` value, another for `x` value | 2019-01-21T01:15:14.950400 | Chester | pythondev_help_Chester_2019-01-21T01:15:14.950400 | 1,548,033,314.9504 | 3,342 |
pythondev | help | So you probably just want
```x = run.get_balance_by_date()
if not x.startswith('Series'):
data.append( (i, x) )``` | 2019-01-21T01:17:40.951600 | Sasha | pythondev_help_Sasha_2019-01-21T01:17:40.951600 | 1,548,033,460.9516 | 3,343 |
pythondev | help | Beautiful | 2019-01-21T01:18:41.951800 | Conchita | pythondev_help_Conchita_2019-01-21T01:18:41.951800 | 1,548,033,521.9518 | 3,344 |
pythondev | help | Thanks for the solution <@Sasha> and for your explanation <@Chester> | 2019-01-21T01:19:37.952800 | Conchita | pythondev_help_Conchita_2019-01-21T01:19:37.952800 | 1,548,033,577.9528 | 3,345 |
pythondev | help | Or you could have applied <@Chester>’s solution to `data` after the loop. | 2019-01-21T01:19:43.953000 | Sasha | pythondev_help_Sasha_2019-01-21T01:19:43.953000 | 1,548,033,583.953 | 3,346 |
pythondev | help | ```
run.get_balance_by_date()
# a little prep; storing data in a list which will be the base of the dataframe
x = run.get_balance_by_date()
```
<@Conchita> why do you call `run.get_balance_by_date` twice? | 2019-01-21T01:36:08.953500 | Chester | pythondev_help_Chester_2019-01-21T01:36:08.953500 | 1,548,034,568.9535 | 3,347 |
pythondev | help | I wasn't aware I still was! Thanks for letting me know <@Chester> | 2019-01-21T01:47:11.954100 | Conchita | pythondev_help_Conchita_2019-01-21T01:47:11.954100 | 1,548,035,231.9541 | 3,348 |
pythondev | help | I want to compute the total of column `balance` in this dataframe ``` address balance
0 3Nxwenay9Z8Lc9JBiywExpnEFiLp6Afp8v 97848.0
1 16ftSEQ4ctQFDtVZiUBusQUjRrGhM3JYwe 20000.0
2 3D2oetdNuZUqQHPJmcMDDHYoqkyNVsFk9r 138661.0
3 3Cbq7aT1tY8kMxWLbitaG7yT6bPbKChq64 108135.0
4 16rCmCm... | 2019-01-21T03:35:45.956300 | Conchita | pythondev_help_Conchita_2019-01-21T03:35:45.956300 | 1,548,041,745.9563 | 3,349 |
pythondev | help | The values are probably strings instead of numbers, so `sum` ends up doing concatenation when it applies the `+` operator to them, is my guess. Maybe try `tot = sum(float(x) for x in df['balance'])`, though ideally you'd want to change the type of the original data instead. | 2019-01-21T03:42:40.959800 | Sasha | pythondev_help_Sasha_2019-01-21T03:42:40.959800 | 1,548,042,160.9598 | 3,350 |
pythondev | help | Is their any hook in Flask such that I should get a callback after server gets started.
Note: I am not looking for `before_first_request` as it will get invoked when first request arrives. | 2019-01-21T03:45:07.960500 | Luise | pythondev_help_Luise_2019-01-21T03:45:07.960500 | 1,548,042,307.9605 | 3,351 |
pythondev | help | I would like to do some sanity testing of various modules, creating certain resources in the server in the required callback. | 2019-01-21T03:45:46.961400 | Luise | pythondev_help_Luise_2019-01-21T03:45:46.961400 | 1,548,042,346.9614 | 3,352 |
pythondev | help | That did the trick, thanks <@Sasha> and I agree I should convert the original data type instead | 2019-01-21T03:50:37.962100 | Conchita | pythondev_help_Conchita_2019-01-21T03:50:37.962100 | 1,548,042,637.9621 | 3,353 |
pythondev | help | I'm scraping some sites and would like some fancy logging about stats. I can not place this in the scrape loop, since this would spam like hell. | 2019-01-21T07:15:55.963700 | Bernita | pythondev_help_Bernita_2019-01-21T07:15:55.963700 | 1,548,054,955.9637 | 3,354 |
pythondev | help | a log print about every 10 sec would be great | 2019-01-21T07:16:23.964200 | Bernita | pythondev_help_Bernita_2019-01-21T07:16:23.964200 | 1,548,054,983.9642 | 3,355 |
pythondev | help | how to approach? | 2019-01-21T07:18:05.964400 | Bernita | pythondev_help_Bernita_2019-01-21T07:18:05.964400 | 1,548,055,085.9644 | 3,356 |
pythondev | help | Sleep for 10 seconds in a separate thread | 2019-01-21T07:19:14.964800 | Chester | pythondev_help_Chester_2019-01-21T07:19:14.964800 | 1,548,055,154.9648 | 3,357 |
pythondev | help | incase you're using scrapy, it has this kind of stat facility builtin <https://doc.scrapy.org/en/latest/topics/stats.html> which can also be extended. | 2019-01-21T07:27:47.965900 | Conrad | pythondev_help_Conrad_2019-01-21T07:27:47.965900 | 1,548,055,667.9659 | 3,358 |
pythondev | help | at the moment bs4 | 2019-01-21T07:28:47.966400 | Bernita | pythondev_help_Bernita_2019-01-21T07:28:47.966400 | 1,548,055,727.9664 | 3,359 |
pythondev | help | sleep will do actually, thanks | 2019-01-21T07:29:00.966900 | Bernita | pythondev_help_Bernita_2019-01-21T07:29:00.966900 | 1,548,055,740.9669 | 3,360 |
pythondev | help | Any good material to improve coding skills? | 2019-01-21T08:24:47.967800 | Ferne | pythondev_help_Ferne_2019-01-21T08:24:47.967800 | 1,548,059,087.9678 | 3,361 |
pythondev | help | <@Ferne> You could do some coding exercises/challenges. CodeWars gamifies this into something fun.
<https://www.codewars.com/> | 2019-01-21T08:34:45.968700 | Malena | pythondev_help_Malena_2019-01-21T08:34:45.968700 | 1,548,059,685.9687 | 3,362 |
pythondev | help | Advent of code has some interesting problems as well, although they are more focused on algorithms than general problem solving. | 2019-01-21T08:58:38.969800 | Yaeko | pythondev_help_Yaeko_2019-01-21T08:58:38.969800 | 1,548,061,118.9698 | 3,363 |
pythondev | help | And can of course be solved even though it's not december | 2019-01-21T08:58:52.970200 | Yaeko | pythondev_help_Yaeko_2019-01-21T08:58:52.970200 | 1,548,061,132.9702 | 3,364 |
pythondev | help | rather than tossing out suggestions, I’d like to know what you feel you can improve on | 2019-01-21T09:06:19.970700 | Hiroko | pythondev_help_Hiroko_2019-01-21T09:06:19.970700 | 1,548,061,579.9707 | 3,365 |
pythondev | help | how do you feel you are with maintainable code, as in passing it to someone else and they’re able to pick it up quickly? what is the level of memory refreshing when you look at today’s code three months from now when you’ve forgotten most of the specifics? | 2019-01-21T09:07:39.972300 | Hiroko | pythondev_help_Hiroko_2019-01-21T09:07:39.972300 | 1,548,061,659.9723 | 3,366 |
pythondev | help | how is your code structure and readability? Does it make sense or do you find yourself slogging through multi-hundred line functions/methods? | 2019-01-21T09:08:28.973200 | Hiroko | pythondev_help_Hiroko_2019-01-21T09:08:28.973200 | 1,548,061,708.9732 | 3,367 |
pythondev | help | how comfortable are you with the language conventions? for example, do you understand how tuple unpacking works? | 2019-01-21T09:09:53.974100 | Hiroko | pythondev_help_Hiroko_2019-01-21T09:09:53.974100 | 1,548,061,793.9741 | 3,368 |
pythondev | help | Hi all,
I have the following situation:
1) TCP Server that should send KeepAlive packets to the 1 client
2) I must be able to send also a packet of special format to this TCP client, and receive a message and return this message to the endpoint in JSON
Is there a best practice for such app?
Basically it’s flask app t... | 2019-01-21T09:41:28.974400 | Kylee | pythondev_help_Kylee_2019-01-21T09:41:28.974400 | 1,548,063,688.9744 | 3,369 |
pythondev | help | None | 2019-01-21T09:42:38.974600 | Kylee | pythondev_help_Kylee_2019-01-21T09:42:38.974600 | 1,548,063,758.9746 | 3,370 |
pythondev | help | That sounds like madness. So your sending a specific TCP packet and you are receiving a stream of JSON? | 2019-01-21T09:46:38.975800 | Jonas | pythondev_help_Jonas_2019-01-21T09:46:38.975800 | 1,548,063,998.9758 | 3,371 |
pythondev | help | This can get nasty with threads, I'd recommend looking into asyncio | 2019-01-21T09:47:28.976400 | Jonas | pythondev_help_Jonas_2019-01-21T09:47:28.976400 | 1,548,064,048.9764 | 3,372 |
pythondev | help | <@Jonas> No it’s not a madness
I want to have a simple flask app over TCP server
from flask app I want to be able to
1) start / stop listening
2) Send specific packet and receiver response (and this packet should bet encoded from json to packet for request and from packet to json for flask handler response ) | 2019-01-21T09:53:15.978500 | Kylee | pythondev_help_Kylee_2019-01-21T09:53:15.978500 | 1,548,064,395.9785 | 3,373 |
pythondev | help | seems like what you want is a la kubernetes | 2019-01-21T09:54:25.979900 | Hiroko | pythondev_help_Hiroko_2019-01-21T09:54:25.979900 | 1,548,064,465.9799 | 3,374 |
pythondev | help | with the liveness checks | 2019-01-21T09:54:31.980200 | Hiroko | pythondev_help_Hiroko_2019-01-21T09:54:31.980200 | 1,548,064,471.9802 | 3,375 |
pythondev | help | Example
packet/send -> receives Json {“data”:1234 } -> encode it into packet -> send via socket -> receives response -> decode to Json -> return an answer | 2019-01-21T09:54:35.980400 | Kylee | pythondev_help_Kylee_2019-01-21T09:54:35.980400 | 1,548,064,475.9804 | 3,376 |
pythondev | help | anyway, why do you want a keep-alive? what service are you running on that requires this? | 2019-01-21T09:55:57.981000 | Hiroko | pythondev_help_Hiroko_2019-01-21T09:55:57.981000 | 1,548,064,557.981 | 3,377 |
pythondev | help | You most certainly want asyncio for this <@Kylee> | 2019-01-21T09:56:32.981900 | Jonas | pythondev_help_Jonas_2019-01-21T09:56:32.981900 | 1,548,064,592.9819 | 3,378 |
pythondev | help | You want to have a single socket connection shared between multiple web requests | 2019-01-21T09:56:55.982800 | Jonas | pythondev_help_Jonas_2019-01-21T09:56:55.982800 | 1,548,064,615.9828 | 3,379 |
pythondev | help | Exact | 2019-01-21T09:57:07.983000 | Kylee | pythondev_help_Kylee_2019-01-21T09:57:07.983000 | 1,548,064,627.983 | 3,380 |
pythondev | help | And you cannot have more than 1 open connection? | 2019-01-21T09:57:20.983500 | Jonas | pythondev_help_Jonas_2019-01-21T09:57:20.983500 | 1,548,064,640.9835 | 3,381 |
pythondev | help | no | 2019-01-21T09:57:32.983700 | Kylee | pythondev_help_Kylee_2019-01-21T09:57:32.983700 | 1,548,064,652.9837 | 3,382 |
pythondev | help | only 1 | 2019-01-21T09:57:34.983900 | Kylee | pythondev_help_Kylee_2019-01-21T09:57:34.983900 | 1,548,064,654.9839 | 3,383 |
pythondev | help | Ok, and what about concurrent requests? | 2019-01-21T09:57:50.984300 | Jonas | pythondev_help_Jonas_2019-01-21T09:57:50.984300 | 1,548,064,670.9843 | 3,384 |
pythondev | help | no concurrent requests - client it’s the single threaded app | 2019-01-21T09:58:16.984900 | Kylee | pythondev_help_Kylee_2019-01-21T09:58:16.984900 | 1,548,064,696.9849 | 3,385 |
pythondev | help | but with damned keep alive) | 2019-01-21T09:58:27.985200 | Kylee | pythondev_help_Kylee_2019-01-21T09:58:27.985200 | 1,548,064,707.9852 | 3,386 |
pythondev | help | Ok, so I would use aiohttp to define my endpoints. When the app starts you'd open the connection and store it in the application configuration | 2019-01-21T10:01:53.987100 | Jonas | pythondev_help_Jonas_2019-01-21T10:01:53.987100 | 1,548,064,913.9871 | 3,387 |
pythondev | help | Then you'd need some methods to handle locking, as you need to ensure only one request is using the socket at once | 2019-01-21T10:02:17.987900 | Jonas | pythondev_help_Jonas_2019-01-21T10:02:17.987900 | 1,548,064,937.9879 | 3,388 |
pythondev | help | Asyncio will take care of the keep alive, and you don't need threads. | 2019-01-21T10:02:42.988700 | Jonas | pythondev_help_Jonas_2019-01-21T10:02:42.988700 | 1,548,064,962.9887 | 3,389 |
pythondev | help | In your method you'd acquire a asynchronous lock, send the data, wait for s response and then release the lock, and return the data. Your views will wait on this method and do something with the response | 2019-01-21T10:03:34.990000 | Jonas | pythondev_help_Jonas_2019-01-21T10:03:34.990000 | 1,548,065,014.99 | 3,390 |
pythondev | help | Out of interest what exactly are you doing? Are you interfacing with some industrial equipment? | 2019-01-21T10:03:52.990700 | Jonas | pythondev_help_Jonas_2019-01-21T10:03:52.990700 | 1,548,065,032.9907 | 3,391 |
pythondev | help | Yep , it’s an industrial equipment. | 2019-01-21T10:23:58.991400 | Kylee | pythondev_help_Kylee_2019-01-21T10:23:58.991400 | 1,548,066,238.9914 | 3,392 |
pythondev | help | And we are writing simulation server for it - for testing purposes | 2019-01-21T10:24:16.991900 | Kylee | pythondev_help_Kylee_2019-01-21T10:24:16.991900 | 1,548,066,256.9919 | 3,393 |
pythondev | help | Hey all, I am trying to use `zeromq` in python. This is what I have:
```
import zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://*:6555")
print(socket.getsockopt_string(zmq.LAST_ENDPOINT))
```
This errors with the following:
```
Traceback (most recent call last):
File "/tmp/listene... | 2019-01-21T10:29:09.995300 | Carmelia | pythondev_help_Carmelia_2019-01-21T10:29:09.995300 | 1,548,066,549.9953 | 3,394 |
pythondev | help | I think request sockets need to have the hostname specified. The zeromq client example has it:
<http://zguide.zeromq.org/cpp:hwclient> | 2019-01-21T10:35:47.996300 | Malena | pythondev_help_Malena_2019-01-21T10:35:47.996300 | 1,548,066,947.9963 | 3,395 |
pythondev | help | IIRC it's also something to do with the difference between `connect` and `bind`. | 2019-01-21T10:36:45.997000 | Malena | pythondev_help_Malena_2019-01-21T10:36:45.997000 | 1,548,067,005.997 | 3,396 |
pythondev | help | Actually yeah, that makes sense. You'e making a request socket, so it ought to be making a connection to a single reply host. | 2019-01-21T10:38:20.997700 | Malena | pythondev_help_Malena_2019-01-21T10:38:20.997700 | 1,548,067,100.9977 | 3,397 |
pythondev | help | You bind the `zmq.REP` socket, and connect the `zmq.REQ` socket. | 2019-01-21T10:39:00.998200 | Malena | pythondev_help_Malena_2019-01-21T10:39:00.998200 | 1,548,067,140.9982 | 3,398 |
pythondev | help | With `bind` you can use `*`. | 2019-01-21T10:39:11.998400 | Malena | pythondev_help_Malena_2019-01-21T10:39:11.998400 | 1,548,067,151.9984 | 3,399 |
pythondev | help | Has anyone here done some heavy production level work with schedulers? E.g do something at a specific time, interval, at this timezone
This scheduler can have over 100 active tasks a day, and the schedules can change dynamically (Stored in DB)
When individual tasks are triggered by the scheduer, based on some condition... | 2019-01-21T10:41:33.998500 | Lawanna | pythondev_help_Lawanna_2019-01-21T10:41:33.998500 | 1,548,067,293.9985 | 3,400 |
pythondev | help | I’ve used and have been happy with celery for a similar use case. I’m pretty sure it would be pretty much everyone’s first suggestion. Is there something about it you are unhappy with? | 2019-01-21T10:43:14.000600 | Clemmie | pythondev_help_Clemmie_2019-01-21T10:43:14.000600 | 1,548,067,394.0006 | 3,401 |
pythondev | help | Fantastic spot. This is exactly it, I was using `connect` instead of `bind`! Thanks a lot :slightly_smiling_face: | 2019-01-21T10:46:56.002800 | Carmelia | pythondev_help_Carmelia_2019-01-21T10:46:56.002800 | 1,548,067,616.0028 | 3,402 |
pythondev | help | celery would be my default fo this, with rabbit as a broker and redis as a backend | 2019-01-21T10:52:57.003400 | Hiroko | pythondev_help_Hiroko_2019-01-21T10:52:57.003400 | 1,548,067,977.0034 | 3,403 |
pythondev | help | what do you feel celery is lacking for you with this requirement? | 2019-01-21T10:53:57.003700 | Hiroko | pythondev_help_Hiroko_2019-01-21T10:53:57.003700 | 1,548,068,037.0037 | 3,404 |
pythondev | help | FWIW, at work we use celery extensively with indexing content, with celerybeat | 2019-01-21T10:54:23.004300 | Hiroko | pythondev_help_Hiroko_2019-01-21T10:54:23.004300 | 1,548,068,063.0043 | 3,405 |
pythondev | help | Yep, on the surface celery has everything I need and more. My work load is not too crazy, compared to have I heard from other teams and read online. I'm currently curing celery beat with django-celery-beat (<https://github.com/celery/django-celery-beat>) so that I can have my tasks managed by the DB (postgres). This al... | 2019-01-21T10:59:45.008800 | Lawanna | pythondev_help_Lawanna_2019-01-21T10:59:45.008800 | 1,548,068,385.0088 | 3,406 |
pythondev | help | There have been some issues in the past with celery and django-celery-beat around missing/lost periodic tasks. Are you on the most recent stable versions of everything (django, celery, django-celery-beat)? | 2019-01-21T11:05:20.011100 | Clemmie | pythondev_help_Clemmie_2019-01-21T11:05:20.011100 | 1,548,068,720.0111 | 3,407 |
pythondev | help | Also are the tasks missed, or do you see a message in your redis log that they were dispatched but didn’t run? | 2019-01-21T11:06:18.012600 | Clemmie | pythondev_help_Clemmie_2019-01-21T11:06:18.012600 | 1,548,068,778.0126 | 3,408 |
pythondev | help | Lastly, what is your celery stack? is it celery/rabbitmq/redis like <@Hiroko> suggested, or something different? | 2019-01-21T11:07:06.014300 | Clemmie | pythondev_help_Clemmie_2019-01-21T11:07:06.014300 | 1,548,068,826.0143 | 3,409 |
pythondev | help | Yes, that's right. Hence why I went down the route of Huey. I wanted to use celery, because i've used it in the past for other projects. But this problem was worse before.
I believe I am on the latest and greatest.
```
celery==4.2.1
django-celery-beat==1.4.0
Django==2.1.4
``` | 2019-01-21T11:07:27.014500 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:07:27.014500 | 1,548,068,847.0145 | 3,410 |
pythondev | help | So celery should be using redis as the broker and django-celery-beat should be using Django ORM with Postgres for storing the schedules. | 2019-01-21T11:08:02.015100 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:08:02.015100 | 1,548,068,882.0151 | 3,411 |
pythondev | help | can you determine whether the missing tasks were dispatched and not run, or not dispatched at all? | 2019-01-21T11:08:48.016300 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:08:48.016300 | 1,548,068,928.0163 | 3,412 |
pythondev | help | Just found this - might be helpful <https://www.vinta.com.br/blog/2017/how-make-sure-celery-beat-tasks-are-working/> | 2019-01-21T11:09:07.016600 | Clemmie | pythondev_help_Clemmie_2019-01-21T11:09:07.016600 | 1,548,068,947.0166 | 3,413 |
pythondev | help | nevermind, just read it - not so helpful | 2019-01-21T11:09:51.017400 | Clemmie | pythondev_help_Clemmie_2019-01-21T11:09:51.017400 | 1,548,068,991.0174 | 3,414 |
pythondev | help | Yes, I have datadog logging a bunch of stuff. I can show you some interesting graphs.
No tasks were dispatched between 4am and 7am UTC | 2019-01-21T11:11:29.018400 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:11:29.018400 | 1,548,069,089.0184 | 3,415 |
pythondev | help | So the scheduler did not send the task, I believe. | 2019-01-21T11:11:55.019500 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:11:55.019500 | 1,548,069,115.0195 | 3,416 |
pythondev | help | How would I get an item from a list, if I check a specific string is in it, so for example;
```
if 'lte' in os.listdir(cell_list):
#how do I get the element from the list with 'lte' in it
``` | 2019-01-21T11:12:05.019700 | Arturo | pythondev_help_Arturo_2019-01-21T11:12:05.019700 | 1,548,069,125.0197 | 3,417 |
pythondev | help | <@Arturo> <https://www.programiz.com/python-programming/methods/list/index> | 2019-01-21T11:13:50.019900 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:13:50.019900 | 1,548,069,230.0199 | 3,418 |
pythondev | help | you can use that to find the index of the item and then use said index to retrieve it | 2019-01-21T11:14:07.020500 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:14:07.020500 | 1,548,069,247.0205 | 3,419 |
pythondev | help | <@Lawanna> :thumbsup: on having good monitoring in place | 2019-01-21T11:14:32.020900 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:14:32.020900 | 1,548,069,272.0209 | 3,420 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.